#402559

Closest named color: Plum Purple (#4E0550). oklch(32.5% 0.092 305.9), rgb(64, 37, 89).

Aa

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

About this color

#402559 is a dark, moderately saturated purple. In OKLCH its lightness is 33%, its chroma 0.092 and its hue 306°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Plum Purple (#4E0550), ΔE 0.062 away. White text reads best on it, at 12.90:1.

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.092)
Temperaturein between
Nearest namePlum Purple (#4E0550)
Black text1.62:1
White text12.90:1

Values

HEX#402559
RGBrgb(64, 37, 89)
HSLhsl(271, 41%, 25%)
OKLCHoklch(32.5% 0.092 305.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 #402559 12.90:1 AAA Lc -102.2 Preferred for body text
Black text on #402559 1.62:1 Fails Lc 0.0 Not readable
#402559 text on white 12.90:1 AAA Lc 98.9 Preferred for body text
#402559 text on black 1.62:1 Fails Lc 0.0 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

    #F7F4FB

    oklch(97.1% 0.01 305.4)

  2. Step 100

    100

    #EDE7F5

    oklch(93.7% 0.02 305.3)

  3. Step 200

    200

    #DFD3EE

    oklch(88.5% 0.039 305.6)

  4. Step 300

    300

    #CBB6E5

    oklch(80.9% 0.069 305.2)

  5. Step 400

    400

    #B28ED7

    oklch(70.7% 0.111 306.4)

  6. Step 500

    500

    #9F70CD

    oklch(63.1% 0.143 306)

  7. Step 600

    600

    #8A57B9

    oklch(55.6% 0.153 306.1)

  8. Step 700

    700

    #7546A0

    oklch(49.1% 0.144 305.9)

  9. Step 800

    800

    #5F3A82

    oklch(42.7% 0.12 305.7)

  10. Step 900

    900 (this color)

    #402559

    oklch(32.5% 0.092 305.9)

  11. Step 950

    950

    #2D1E3D

    oklch(26.9% 0.059 305.1)

Export this scale for Tailwind in the Tailwind colors tool

#402559 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)#14315B0.072
Deuteranopia (no green cones)#1D32580.065
Tritanopia (no blue cones)#3C2F3B0.068
Achromatopsia (no color)#3232320.093

Harmonies

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

Complementary

The opposite hue (180°).

  • #402559

    #402559

    oklch(32.5% 0.092 305.9)

  • #2A3B00

    #2A3B00

    oklch(32.5% 0.082 125.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402559

    #402559

    oklch(32.5% 0.092 305.9)

  • #282E62

    #282E62

    oklch(32.6% 0.091 275.2)

  • #501E46

    #501E46

    oklch(32.5% 0.093 335.9)

Open the analogous palette in the generator

Split complementary

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

  • #402559

    #402559

    oklch(32.5% 0.092 305.9)

  • #3F3400

    #3F3400

    oklch(32.7% 0.067 96)

  • #004022

    #004022

    oklch(32.7% 0.08 155.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402559

    #402559

    oklch(32.5% 0.092 305.9)

  • #4D2B00

    #4D2B00

    oklch(32.5% 0.073 65.3)

  • #003D38

    #003D38

    oklch(32.4% 0.057 185.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402559

    #402559

    oklch(32.5% 0.092 305.9)

  • #5A1E0E

    #5A1E0E

    oklch(32.5% 0.092 35.7)

  • #2A3B00

    #2A3B00

    oklch(32.5% 0.082 125.6)

  • #003B47

    #003B47

    oklch(32.5% 0.058 216.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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