#7838A2

Closest named color: Rebecca Purple (#663399). oklch(47.5% 0.168 309.2), rgb(120, 56, 162).

Aa

White text reads best on this color (7.27:1).

About this color

#7838A2 is a medium-dark, vivid purple. In OKLCH its lightness is 48%, its chroma 0.168 and its hue 309°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.040 away. White text reads best on it, at 7.27:1.

Hue familyPurples
Lightnessmedium-dark (48%)
Chromavivid (0.168)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.88:1
White text7.27:1

Values

HEX#7838A2
RGBrgb(120, 56, 162)
HSLhsl(276, 49%, 43%)
OKLCHoklch(47.5% 0.168 309.2)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #7838A2 7.27:1 AAA Lc -89.6 Fine for body text
Black text on #7838A2 2.88:1 Fails Lc 19.3 Dividers and decoration only
#7838A2 text on white 7.27:1 AAA Lc 84.7 Fine for body text
#7838A2 text on black 2.88:1 Fails Lc -17.3 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #F8F4FB

    oklch(97.2% 0.01 311.2)

  2. Step 100

    100

    #EEE6F6

    oklch(93.6% 0.023 308.2)

  3. Step 200

    200

    #E2D2F0

    oklch(88.6% 0.044 309.3)

  4. Step 300

    300

    #D0B3E9

    oklch(81% 0.081 309)

  5. Step 400

    400

    #B889DE

    oklch(70.7% 0.13 308.8)

  6. Step 500

    500

    #A768D4

    oklch(63% 0.167 309.3)

  7. Step 600

    600

    #924DC1

    oklch(55.6% 0.18 309.1)

  8. Step 700

    700 (this color)

    #7838A2

    oklch(47.5% 0.168 309.2)

  9. Step 800

    800

    #653387

    oklch(42.6% 0.139 309.1)

  10. Step 900

    900

    #522E6C

    oklch(37.6% 0.108 308.9)

  11. Step 950

    950

    #301C3F

    oklch(27% 0.067 309)

Export this scale for Tailwind in the Tailwind colors tool

#7838A2 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#0054A50.147
Deuteranopia (no green cones)#2757A00.132
Tritanopia (no blue cones)#724E680.118
Achromatopsia (no color)#5757570.169

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #7838A2

    #7838A2

    oklch(47.5% 0.168 309.2)

  • #456900

    #456900

    oklch(47.5% 0.126 129.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7838A2

    #7838A2

    oklch(47.5% 0.168 309.2)

  • #4D4AB7

    #4D4AB7

    oklch(47.6% 0.167 279.2)

  • #94297B

    #94297B

    oklch(47.5% 0.168 338.8)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #7838A2

    #7838A2

    oklch(47.5% 0.168 309.2)

  • #6A5D00

    #6A5D00

    oklch(47.6% 0.099 99.8)

  • #006E45

    #006E45

    oklch(47.5% 0.109 159.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7838A2

    #7838A2

    oklch(47.5% 0.168 309.2)

  • #815000

    #815000

    oklch(47.6% 0.103 69.5)

  • #006B66

    #006B66

    oklch(47.6% 0.082 189.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #7838A2

    #7838A2

    oklch(47.5% 0.168 309.2)

  • #9F3300

    #9F3300

    oklch(47.6% 0.152 39.3)

  • #456900

    #456900

    oklch(47.5% 0.126 129.2)

  • #00677D

    #00677D

    oklch(47.5% 0.086 219.3)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #7838A2, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #7838A2 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.