#402561

Closest named color: Royal Purple (#4B006E). oklch(33.1% 0.103 301.8), rgb(64, 37, 97).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (33%)
Chromamoderately saturated (0.103)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.65:1
White text12.68:1

Values

HEX#402561
RGBrgb(64, 37, 97)
HSLhsl(267, 45%, 26%)
OKLCHoklch(33.1% 0.103 301.8)

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 #402561 12.68:1 AAA Lc -101.8 Preferred for body text
Black text on #402561 1.65:1 Fails Lc 0.0 Not readable
#402561 text on white 12.68:1 AAA Lc 98.4 Preferred for body text
#402561 text on black 1.65: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

    #F6F4FB

    oklch(97.1% 0.009 299.2)

  2. Step 100

    100

    #ECE7F7

    oklch(93.7% 0.022 300.2)

  3. Step 200

    200

    #DED3F2

    oklch(88.5% 0.044 301.7)

  4. Step 300

    300

    #C9B5EB

    oklch(80.8% 0.078 301.6)

  5. Step 400

    400

    #AF8DE1

    oklch(70.7% 0.124 301.9)

  6. Step 500

    500

    #9C6ED8

    oklch(63.1% 0.159 302.1)

  7. Step 600

    600

    #8754C6

    oklch(55.7% 0.172 301.7)

  8. Step 700

    700

    #7243AB

    oklch(49% 0.161 301.5)

  9. Step 800

    800

    #5D388A

    oklch(42.6% 0.133 301.9)

  10. Step 900

    900 (this color)

    #402561

    oklch(33.1% 0.103 301.8)

  11. Step 950

    950

    #2C1D41

    oklch(26.9% 0.067 301.3)

Export this scale for Tailwind in the Tailwind colors tool

#402561 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)#0932630.079
Deuteranopia (no green cones)#1532600.071
Tritanopia (no blue cones)#39313F0.077
Achromatopsia (no color)#3333330.104

Harmonies

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

Complementary

The opposite hue (180°).

  • #402561

    #402561

    oklch(33.1% 0.103 301.8)

  • #2F3C00

    #2F3C00

    oklch(33.2% 0.081 122.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402561

    #402561

    oklch(33.1% 0.103 301.8)

  • #242F6A

    #242F6A

    oklch(33.2% 0.103 271.7)

  • #521D4D

    #521D4D

    oklch(33.1% 0.103 331.5)

Open the analogous palette in the generator

Split complementary

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

  • #402561

    #402561

    oklch(33.1% 0.103 301.8)

  • #423400

    #423400

    oklch(33.1% 0.068 92.2)

  • #00421D

    #00421D

    oklch(33.2% 0.088 151.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402561

    #402561

    oklch(33.1% 0.103 301.8)

  • #512B00

    #512B00

    oklch(33.2% 0.076 61.8)

  • #003F38

    #003F38

    oklch(33% 0.059 182.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402561

    #402561

    oklch(33.1% 0.103 301.8)

  • #601A0F

    #601A0F

    oklch(33.1% 0.104 31.7)

  • #2F3C00

    #2F3C00

    oklch(33.2% 0.081 122.2)

  • #003D47

    #003D47

    oklch(33.1% 0.058 212.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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