#401540

Closest named color: Eggplant Purple (#430541). oklch(28.3% 0.091 327.6), rgb(64, 21, 64).

Aa

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

About this color

#401540 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.091 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Eggplant Purple (#430541), ΔE 0.027 away. White text reads best on it, at 15.00:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.091)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.39:1
White text15.00:1

Values

HEX#401540
RGBrgb(64, 21, 64)
HSLhsl(300, 51%, 17%)
OKLCHoklch(28.3% 0.091 327.6)

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 #401540 15.00:1 AAA Lc -104.3 Preferred for body text
Black text on #401540 1.39:1 Fails Lc 0.0 Not readable
#401540 text on white 15.00:1 AAA Lc 101.5 Preferred for body text
#401540 text on black 1.39: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 950.

  1. Step 50

    50

    #FBF2FA

    oklch(97% 0.014 329.1)

  2. Step 100

    100

    #F6E3F5

    oklch(93.6% 0.031 327.4)

  3. Step 200

    200

    #EFCCEE

    oklch(88.5% 0.059 327)

  4. Step 300

    300

    #E6A8E4

    oklch(80.9% 0.107 327.6)

  5. Step 400

    400

    #D875D7

    oklch(70.7% 0.173 327.6)

  6. Step 500

    500

    #CB49CC

    oklch(63.1% 0.221 327.5)

  7. Step 600

    600

    #B61EB8

    oklch(55.5% 0.239 327.6)

  8. Step 700

    700

    #9D089F

    oklch(49.2% 0.223 327.6)

  9. Step 800

    800

    #7F1181

    oklch(42.7% 0.185 327.4)

  10. Step 900

    900

    #671A67

    oklch(37.7% 0.144 328)

  11. Step 950

    950 (this color)

    #401540

    oklch(28.3% 0.091 327.6)

Export this scale for Tailwind in the Tailwind colors tool

#401540 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)#1023410.093
Deuteranopia (no green cones)#1F293F0.081
Tritanopia (no blue cones)#421A280.050
Achromatopsia (no color)#2727270.092

Harmonies

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

Complementary

The opposite hue (180°).

  • #401540

    #401540

    oklch(28.3% 0.091 327.6)

  • #00340E

    #00340E

    oklch(28.3% 0.083 147.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401540

    #401540

    oklch(28.3% 0.091 327.6)

  • #301C50

    #301C50

    oklch(28.3% 0.092 298)

  • #4A102A

    #4A102A

    oklch(28.3% 0.091 357.3)

Open the analogous palette in the generator

Split complementary

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

  • #401540

    #401540

    oklch(28.3% 0.091 327.6)

  • #272D00

    #272D00

    oklch(28.1% 0.065 117.3)

  • #003229

    #003229

    oklch(28.3% 0.053 176.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401540

    #401540

    oklch(28.3% 0.091 327.6)

  • #362700

    #362700

    oklch(28.3% 0.058 86.4)

  • #003036

    #003036

    oklch(28.3% 0.049 207.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401540

    #401540

    oklch(28.3% 0.091 327.6)

  • #421F00

    #421F00

    oklch(28.3% 0.068 57.1)

  • #00340E

    #00340E

    oklch(28.3% 0.083 147.4)

  • #002D44

    #002D44

    oklch(28.2% 0.062 237.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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