#662D78

Closest named color: Rebecca Purple (#663399). oklch(40.9% 0.132 317.3), rgb(102, 45, 120).

Aa

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

About this color

#662D78 is a dark, moderately saturated purple. In OKLCH its lightness is 41%, its chroma 0.132 and its hue 317°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rebecca Purple (#663399), ΔE 0.055 away. White text reads best on it, at 9.49:1.

Hue familyPurples
Lightnessdark (41%)
Chromamoderately saturated (0.132)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.21:1
White text9.49:1

Values

HEX#662D78
RGBrgb(102, 45, 120)
HSLhsl(286, 45%, 32%)
OKLCHoklch(40.9% 0.132 317.3)

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 #662D78 9.49:1 AAA Lc -95.8 Preferred for body text
Black text on #662D78 2.21:1 Fails Lc 12.5 Not readable
#662D78 text on white 9.49:1 AAA Lc 91.5 Preferred for body text
#662D78 text on black 2.21:1 Fails Lc -10.9 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

    #F8F3FA

    oklch(97% 0.011 316.5)

  2. Step 100

    100

    #F0E6F4

    oklch(93.7% 0.021 316.5)

  3. Step 200

    200

    #E5D1EC

    oklch(88.5% 0.042 317.4)

  4. Step 300

    300

    #D5B2E2

    oklch(81% 0.076 316.8)

  5. Step 400

    400

    #C087D3

    oklch(70.7% 0.124 317.4)

  6. Step 500

    500

    #AF67C7

    oklch(63.1% 0.157 317.2)

  7. Step 600

    600

    #9B4BB4

    oklch(55.6% 0.173 317.5)

  8. Step 700

    700

    #843C9B

    oklch(49.2% 0.16 317.2)

  9. Step 800

    800 (this color)

    #662D78

    oklch(40.9% 0.132 317.3)

  10. Step 900

    900

    #572D65

    oklch(37.7% 0.103 317.1)

  11. Step 950

    950

    #331B3B

    oklch(27% 0.065 317.2)

Export this scale for Tailwind in the Tailwind colors tool

#662D78 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)#18427A0.125
Deuteranopia (no green cones)#2F47760.108
Tritanopia (no blue cones)#653A4E0.085
Achromatopsia (no color)#4646460.133

Harmonies

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

Complementary

The opposite hue (180°).

  • #662D78

    #662D78

    oklch(40.9% 0.132 317.3)

  • #235800

    #235800

    oklch(40.8% 0.124 137.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #662D78

    #662D78

    oklch(40.9% 0.132 317.3)

  • #48398C

    #48398C

    oklch(40.8% 0.132 287.3)

  • #792357

    #792357

    oklch(40.8% 0.132 347.3)

Open the analogous palette in the generator

Split complementary

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

  • #662D78

    #662D78

    oklch(40.9% 0.132 317.3)

  • #504D00

    #504D00

    oklch(41% 0.088 107.1)

  • #005841

    #005841

    oklch(40.9% 0.083 167.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #662D78

    #662D78

    oklch(40.9% 0.132 317.3)

  • #644300

    #644300

    oklch(41% 0.086 77)

  • #005557

    #005557

    oklch(40.8% 0.069 197.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #662D78

    #662D78

    oklch(40.9% 0.132 317.3)

  • #793200

    #793200

    oklch(41% 0.113 47.4)

  • #235800

    #235800

    oklch(40.8% 0.124 137.3)

  • #00526B

    #00526B

    oklch(40.9% 0.079 226.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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