#662E9D

Closest named color: Rebecca Purple (#663399). oklch(43.7% 0.172 303), rgb(102, 46, 157).

Aa

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

About this color

#662E9D is a dark, vivid purple. In OKLCH its lightness is 44%, its chroma 0.172 and its hue 303°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.012 away. White text reads best on it, at 8.59:1.

Hue familyPurples
Lightnessdark (44%)
Chromavivid (0.172)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.44:1
White text8.59:1

Values

HEX#662E9D
RGBrgb(102, 46, 157)
HSLhsl(270, 55%, 40%)
OKLCHoklch(43.7% 0.172 303)

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 #662E9D 8.59:1 AAA Lc -93.4 Preferred for body text
Black text on #662E9D 2.44:1 Fails Lc 15.2 Dividers and decoration only
#662E9D text on white 8.59:1 AAA Lc 88.8 Fine for body text
#662E9D text on black 2.44:1 Fails Lc -13.4 Not readable

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 800.

  1. Step 50

    50

    #F7F3FD

    oklch(97% 0.014 304.1)

  2. Step 100

    100

    #EDE6FA

    oklch(93.6% 0.028 301.7)

  3. Step 200

    200

    #E0D1F8

    oklch(88.5% 0.055 302.8)

  4. Step 300

    300

    #CDB1F6

    oklch(80.8% 0.1 302.8)

  5. Step 400

    400

    #B585F2

    oklch(70.7% 0.16 302.8)

  6. Step 500

    500

    #A461ED

    oklch(63.2% 0.205 303)

  7. Step 600

    600

    #8F41DB

    oklch(55.5% 0.223 302.8)

  8. Step 700

    700

    #7A31BE

    oklch(49% 0.207 302.9)

  9. Step 800

    800 (this color)

    #662E9D

    oklch(43.7% 0.172 303)

  10. Step 900

    900

    #51297A

    oklch(37.7% 0.133 303.3)

  11. Step 950

    950

    #2F1948

    oklch(27% 0.085 302.7)

Export this scale for Tailwind in the Tailwind colors tool

#662E9D 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)#004BA00.128
Deuteranopia (no green cones)#004C9B0.129
Tritanopia (no blue cones)#5B48620.125
Achromatopsia (no color)#4C4C4C0.173

Harmonies

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

Complementary

The opposite hue (180°).

  • #662E9D

    #662E9D

    oklch(43.7% 0.172 303)

  • #475A00

    #475A00

    oklch(43.6% 0.107 122.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #662E9D

    #662E9D

    oklch(43.7% 0.172 303)

  • #3741AE

    #3741AE

    oklch(43.7% 0.172 273)

  • #841C79

    #841C79

    oklch(43.7% 0.171 332.9)

Open the analogous palette in the generator

Split complementary

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

  • #662E9D

    #662E9D

    oklch(43.7% 0.172 303)

  • #635000

    #635000

    oklch(43.8% 0.09 93)

  • #006332

    #006332

    oklch(43.8% 0.113 153)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #662E9D

    #662E9D

    oklch(43.7% 0.172 303)

  • #774300

    #774300

    oklch(43.6% 0.1 63)

  • #005F56

    #005F56

    oklch(43.6% 0.077 183.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #662E9D

    #662E9D

    oklch(43.7% 0.172 303)

  • #961B00

    #961B00

    oklch(43.6% 0.161 32.9)

  • #475A00

    #475A00

    oklch(43.6% 0.107 122.7)

  • #005C6B

    #005C6B

    oklch(43.6% 0.077 213.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #662E9D 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.