#662777

Closest named color: Rebecca Purple (#663399). oklch(40% 0.14 318.4), rgb(102, 39, 119).

Aa

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

About this color

#662777 is a dark, vivid 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.059 away. White text reads best on it, at 9.89:1.

Hue familyPurples
Lightnessdark (40%)
Chromavivid (0.140)
Temperaturein between
Nearest nameRebecca Purple (#663399)
Black text2.12:1
White text9.89:1

Values

HEX#662777
RGBrgb(102, 39, 119)
HSLhsl(287, 51%, 31%)
OKLCHoklch(40% 0.14 318.4)

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 #662777 9.89:1 AAA Lc -96.5 Preferred for body text
Black text on #662777 2.12:1 Fails Lc 11.6 Not readable
#662777 text on white 9.89:1 AAA Lc 92.3 Preferred for body text
#662777 text on black 2.12:1 Fails Lc -10.1 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 900.

  1. Step 50

    50

    #FAF3FC

    oklch(97.2% 0.014 318.7)

  2. Step 100

    100

    #F3E4F7

    oklch(93.6% 0.03 319.1)

  3. Step 200

    200

    #EACEF2

    oklch(88.6% 0.057 318.7)

  4. Step 300

    300

    #DEABED

    oklch(81% 0.106 318.4)

  5. Step 400

    400

    #CC7BE3

    oklch(70.8% 0.168 318.5)

  6. Step 500

    500

    #BE52DB

    oklch(63.2% 0.216 318.5)

  7. Step 600

    600

    #A92DC8

    oklch(55.6% 0.234 318.5)

  8. Step 700

    700

    #911CAD

    oklch(49.1% 0.218 318.5)

  9. Step 800

    800

    #761C8C

    oklch(42.7% 0.18 318.6)

  10. Step 900

    900 (this color)

    #662777

    oklch(40% 0.14 318.4)

  11. Step 950

    950

    #381442

    oklch(27% 0.09 318.3)

Export this scale for Tailwind in the Tailwind colors tool

#662777 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)#0C3F790.137
Deuteranopia (no green cones)#2B45750.118
Tritanopia (no blue cones)#66354B0.089
Achromatopsia (no color)#4343430.141

Harmonies

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

Complementary

The opposite hue (180°).

  • #662777

    #662777

    oklch(40% 0.14 318.4)

  • #1D5600

    #1D5600

    oklch(39.9% 0.125 138.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #662777

    #662777

    oklch(40% 0.14 318.4)

  • #48348D

    #48348D

    oklch(40% 0.141 288.7)

  • #7A1C54

    #7A1C54

    oklch(40.1% 0.14 348.8)

Open the analogous palette in the generator

Split complementary

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

  • #662777

    #662777

    oklch(40% 0.14 318.4)

  • #4C4B00

    #4C4B00

    oklch(40.1% 0.087 108.9)

  • #005540

    #005540

    oklch(40% 0.08 169)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #662777

    #662777

    oklch(40% 0.14 318.4)

  • #604100

    #604100

    oklch(40% 0.083 78.1)

  • #005355

    #005355

    oklch(40.1% 0.068 197.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #662777

    #662777

    oklch(40% 0.14 318.4)

  • #743100

    #743100

    oklch(40% 0.108 48.4)

  • #1D5600

    #1D5600

    oklch(39.9% 0.125 138.5)

  • #004F69

    #004F69

    oklch(40% 0.079 228.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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