#400F45

Closest named color: Eggplant Purple (#430541). oklch(27.9% 0.105 323.9), rgb(64, 15, 69).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.105)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.37:1
White text15.30:1

Values

HEX#400F45
RGBrgb(64, 15, 69)
HSLhsl(294, 64%, 16%)
OKLCHoklch(27.9% 0.105 323.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 #400F45 15.30:1 AAA Lc -104.5 Preferred for body text
Black text on #400F45 1.37:1 Fails Lc 0.0 Not readable
#400F45 text on white 15.30:1 AAA Lc 101.6 Preferred for body text
#400F45 text on black 1.37: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

    #FBF2FC

    oklch(97.1% 0.016 322.7)

  2. Step 100

    100

    #F6E2F8

    oklch(93.5% 0.036 323.1)

  3. Step 200

    200

    #F1CAF4

    oklch(88.5% 0.07 323.9)

  4. Step 300

    300

    #E8A4EE

    oklch(80.8% 0.125 323.9)

  5. Step 400

    400

    #DB6DE6

    oklch(70.7% 0.201 323.9)

  6. Step 500

    500

    #CF38DE

    oklch(63.2% 0.256 324)

  7. Step 600

    600

    #B600C6

    oklch(55.5% 0.261 323.9)

  8. Step 700

    700

    #9A00A8

    oklch(49.1% 0.231 323.8)

  9. Step 800

    800

    #7F008B

    oklch(42.7% 0.201 323.7)

  10. Step 900

    900

    #690C72

    oklch(37.8% 0.167 323.9)

  11. Step 950

    950 (this color)

    #400F45

    oklch(27.9% 0.105 323.9)

Export this scale for Tailwind in the Tailwind colors tool

#400F45 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)#0221470.110
Deuteranopia (no green cones)#1827440.093
Tritanopia (no blue cones)#4118280.062
Achromatopsia (no color)#2525250.106

Harmonies

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

Complementary

The opposite hue (180°).

  • #400F45

    #400F45

    oklch(27.9% 0.105 323.9)

  • #003304

    #003304

    oklch(27.9% 0.091 143.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400F45

    #400F45

    oklch(27.9% 0.105 323.9)

  • #2D1956

    #2D1956

    oklch(27.9% 0.105 293.6)

  • #4C062C

    #4C062C

    oklch(27.8% 0.106 354)

Open the analogous palette in the generator

Split complementary

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

  • #400F45

    #400F45

    oklch(27.9% 0.105 323.9)

  • #282C00

    #282C00

    oklch(28% 0.063 115)

  • #003126

    #003126

    oklch(27.9% 0.054 172.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400F45

    #400F45

    oklch(27.9% 0.105 323.9)

  • #362600

    #362600

    oklch(28% 0.057 84.4)

  • #002F33

    #002F33

    oklch(27.8% 0.047 203.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400F45

    #400F45

    oklch(27.9% 0.105 323.9)

  • #421D00

    #421D00

    oklch(27.9% 0.07 54.1)

  • #003304

    #003304

    oklch(27.9% 0.091 143.9)

  • #002D41

    #002D41

    oklch(28% 0.058 233.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #400F45 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.