#662878

Closest named color: Rebecca Purple (#663399). oklch(40.2% 0.14 317.9), rgb(102, 40, 120).

Aa

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

About this color

#662878 is a dark, moderately saturated purple. In OKLCH its lightness is 40%, its chroma 0.140 and its hue 318°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.057 away. White text reads best on it, at 9.81:1.

Hue familyPurples
Lightnessdark (40%)
Chromamoderately saturated (0.140)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.13:1
White text9.81:1

Values

HEX#662878
RGBrgb(102, 40, 120)
HSLhsl(287, 50%, 31%)
OKLCHoklch(40.2% 0.14 317.9)

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 #662878 9.81:1 AAA Lc -96.4 Preferred for body text
Black text on #662878 2.13:1 Fails Lc 11.8 Not readable
#662878 text on white 9.81:1 AAA Lc 92.1 Preferred for body text
#662878 text on black 2.13:1 Fails Lc -10.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

    #F9F3FA

    oklch(97.1% 0.011 321.3)

  2. Step 100

    100

    #F1E5F4

    oklch(93.6% 0.024 319.5)

  3. Step 200

    200

    #E6D0ED

    oklch(88.4% 0.046 318)

  4. Step 300

    300

    #D7B0E3

    oklch(80.8% 0.082 318.1)

  5. Step 400

    400

    #C285D5

    oklch(70.6% 0.131 317.9)

  6. Step 500

    500

    #B264CA

    oklch(63.1% 0.167 317.8)

  7. Step 600

    600

    #9D48B7

    oklch(55.6% 0.181 317.6)

  8. Step 700

    700

    #86389D

    oklch(49% 0.168 317.8)

  9. Step 800

    800 (this color)

    #662878

    oklch(40.2% 0.14 317.9)

  10. Step 900

    900

    #592B66

    oklch(37.7% 0.109 318.4)

  11. Step 950

    950

    #341A3C

    oklch(27% 0.069 317.8)

Export this scale for Tailwind in the Tailwind colors tool

#662878 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)#0D407A0.136
Deuteranopia (no green cones)#2B46760.118
Tritanopia (no blue cones)#66364C0.089
Achromatopsia (no color)#4444440.141

Harmonies

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

Complementary

The opposite hue (180°).

  • #662878

    #662878

    oklch(40.2% 0.14 317.9)

  • #205700

    #205700

    oklch(40.4% 0.124 137.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #662878

    #662878

    oklch(40.2% 0.14 317.9)

  • #48358E

    #48358E

    oklch(40.2% 0.141 288.2)

  • #7A1D56

    #7A1D56

    oklch(40.3% 0.14 347.6)

Open the analogous palette in the generator

Split complementary

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

  • #662878

    #662878

    oklch(40.2% 0.14 317.9)

  • #4D4B00

    #4D4B00

    oklch(40.2% 0.087 108)

  • #005640

    #005640

    oklch(40.3% 0.081 168.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #662878

    #662878

    oklch(40.2% 0.14 317.9)

  • #614100

    #614100

    oklch(40.2% 0.084 77.1)

  • #005356

    #005356

    oklch(40.2% 0.068 199)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #662878

    #662878

    oklch(40.2% 0.14 317.9)

  • #763100

    #763100

    oklch(40.3% 0.11 47.7)

  • #205700

    #205700

    oklch(40.4% 0.124 137.9)

  • #005069

    #005069

    oklch(40.2% 0.078 227.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #662878 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.