#662A86

Closest named color: Rebecca Purple (#663399). oklch(41.5% 0.152 311.5), rgb(102, 42, 134).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (41%)
Chromavivid (0.152)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.24:1
White text9.37:1

Values

HEX#662A86
RGBrgb(102, 42, 134)
HSLhsl(279, 52%, 35%)
OKLCHoklch(41.5% 0.152 311.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 #662A86 9.37:1 AAA Lc -95.4 Preferred for body text
Black text on #662A86 2.24:1 Fails Lc 13.0 Not readable
#662A86 text on white 9.37:1 AAA Lc 91.0 Preferred for body text
#662A86 text on black 2.24:1 Fails Lc -11.3 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

    #F8F3FB

    oklch(97% 0.012 313.2)

  2. Step 100

    100

    #F0E5F7

    oklch(93.6% 0.027 312.6)

  3. Step 200

    200

    #E4D0F1

    oklch(88.4% 0.049 312.2)

  4. Step 300

    300

    #D4B1EB

    oklch(81% 0.088 311.7)

  5. Step 400

    400

    #BD85E1

    oklch(70.7% 0.142 311.2)

  6. Step 500

    500

    #AD63D8

    oklch(63.2% 0.181 311.5)

  7. Step 600

    600

    #9845C5

    oklch(55.5% 0.198 311.5)

  8. Step 700

    700

    #8236AA

    oklch(49.1% 0.183 311.6)

  9. Step 800

    800 (this color)

    #662A86

    oklch(41.5% 0.152 311.5)

  10. Step 900

    900

    #562A6E

    oklch(37.7% 0.119 311.9)

  11. Step 950

    950

    #321A41

    oklch(27.1% 0.075 310.8)

Export this scale for Tailwind in the Tailwind colors tool

#662A86 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)#0044890.136
Deuteranopia (no green cones)#2048840.123
Tritanopia (no blue cones)#623D540.104
Achromatopsia (no color)#4646460.153

Harmonies

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

Complementary

The opposite hue (180°).

  • #662A86

    #662A86

    oklch(41.5% 0.152 311.5)

  • #345700

    #345700

    oklch(41.4% 0.114 131.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #662A86

    #662A86

    oklch(41.5% 0.152 311.5)

  • #42399A

    #42399A

    oklch(41.4% 0.152 281.6)

  • #7E1C63

    #7E1C63

    oklch(41.5% 0.152 341.5)

Open the analogous palette in the generator

Split complementary

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

  • #662A86

    #662A86

    oklch(41.5% 0.152 311.5)

  • #564C00

    #564C00

    oklch(41.4% 0.086 100.7)

  • #005A3B

    #005A3B

    oklch(41.3% 0.091 161.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #662A86

    #662A86

    oklch(41.5% 0.152 311.5)

  • #694200

    #694200

    oklch(41.5% 0.089 71.6)

  • #005855

    #005855

    oklch(41.6% 0.072 190.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #662A86

    #662A86

    oklch(41.5% 0.152 311.5)

  • #812C00

    #812C00

    oklch(41.5% 0.126 41.5)

  • #345700

    #345700

    oklch(41.4% 0.114 131.2)

  • #005469

    #005469

    oklch(41.3% 0.076 222.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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