#7838A1

Closest named color: Rebecca Purple (#663399). oklch(47.5% 0.167 309.5), rgb(120, 56, 161).

Aa

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

About this color

#7838A1 is a medium-dark, vivid purple. In OKLCH its lightness is 47%, its chroma 0.167 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.039 away. White text reads best on it, at 7.29:1.

Hue familyPurples
Lightnessmedium-dark (47%)
Chromavivid (0.167)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.87:1
White text7.29:1

Values

HEX#7838A1
RGBrgb(120, 56, 161)
HSLhsl(277, 48%, 43%)
OKLCHoklch(47.5% 0.167 309.5)

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 #7838A1 7.29:1 AAA Lc -89.7 Fine for body text
Black text on #7838A1 2.87:1 Fails Lc 19.3 Dividers and decoration only
#7838A1 text on white 7.29:1 AAA Lc 84.7 Fine for body text
#7838A1 text on black 2.87:1 Fails Lc -17.2 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

    #B989DD

    oklch(70.8% 0.129 309.7)

  6. Step 500

    500

    #A769D4

    oklch(63.2% 0.165 309.2)

  7. Step 600

    600

    #934DC1

    oklch(55.7% 0.18 309.6)

  8. Step 700

    700 (this color)

    #7838A1

    oklch(47.5% 0.167 309.5)

  9. Step 800

    800

    #653387

    oklch(42.6% 0.139 309.1)

  10. Step 900

    900

    #532E6C

    oklch(37.8% 0.108 309.7)

  11. Step 950

    950

    #301C3F

    oklch(27% 0.067 309)

Export this scale for Tailwind in the Tailwind colors tool

#7838A1 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)#0054A40.148
Deuteranopia (no green cones)#29579F0.131
Tritanopia (no blue cones)#724D670.116
Achromatopsia (no color)#5656560.169

Harmonies

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

Complementary

The opposite hue (180°).

  • #7838A1

    #7838A1

    oklch(47.5% 0.167 309.5)

  • #446900

    #446900

    oklch(47.5% 0.127 129.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #7838A1

    #7838A1

    oklch(47.5% 0.167 309.5)

  • #4D49B6

    #4D49B6

    oklch(47.3% 0.167 279.5)

  • #94297A

    #94297A

    oklch(47.5% 0.167 339.3)

Open the analogous palette in the generator

Split complementary

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

  • #7838A1

    #7838A1

    oklch(47.5% 0.167 309.5)

  • #6A5C00

    #6A5C00

    oklch(47.4% 0.098 98.9)

  • #006E46

    #006E46

    oklch(47.5% 0.108 159.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #7838A1

    #7838A1

    oklch(47.5% 0.167 309.5)

  • #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.

  • #7838A1

    #7838A1

    oklch(47.5% 0.167 309.5)

  • #9E3300

    #9E3300

    oklch(47.5% 0.151 39.5)

  • #446900

    #446900

    oklch(47.5% 0.127 129.6)

  • #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 #7838A1, closest first.

Similar named colors

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

Use #7838A1 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.