#400A42

Closest named color: Eggplant Purple (#430541). oklch(27.2% 0.109 326.5), rgb(64, 10, 66).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.109)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.34:1
White text15.67:1

Values

HEX#400A42
RGBrgb(64, 10, 66)
HSLhsl(298, 74%, 15%)
OKLCHoklch(27.2% 0.109 326.5)

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 #400A42 15.67:1 AAA Lc -104.7 Preferred for body text
Black text on #400A42 1.34:1 Fails Lc 0.0 Not readable
#400A42 text on white 15.67:1 AAA Lc 101.9 Preferred for body text
#400A42 text on black 1.34: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

    #FCF2FC

    oklch(97.2% 0.017 325.7)

  2. Step 100

    100

    #F8E2F7

    oklch(93.7% 0.037 327.2)

  3. Step 200

    200

    #F3C9F3

    oklch(88.5% 0.073 326.2)

  4. Step 300

    300

    #ECA2ED

    oklch(80.8% 0.13 326.2)

  5. Step 400

    400

    #E069E3

    oklch(70.7% 0.207 326.5)

  6. Step 500

    500

    #D42FDB

    oklch(63.1% 0.264 326.3)

  7. Step 600

    600

    #B900C0

    oklch(55.6% 0.258 326.4)

  8. Step 700

    700

    #9D00A2

    oklch(49.2% 0.228 326.7)

  9. Step 800

    800

    #810086

    oklch(42.7% 0.198 326.4)

  10. Step 900

    900

    #6C0370

    oklch(37.7% 0.172 326.5)

  11. Step 950

    950 (this color)

    #400A42

    oklch(27.2% 0.109 326.5)

Export this scale for Tailwind in the Tailwind colors tool

#400A42 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)#001F440.117
Deuteranopia (no green cones)#1826410.098
Tritanopia (no blue cones)#4214250.063
Achromatopsia (no color)#2323230.110

Harmonies

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

Complementary

The opposite hue (180°).

  • #400A42

    #400A42

    oklch(27.2% 0.109 326.5)

  • #00310A

    #00310A

    oklch(27.3% 0.083 146.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400A42

    #400A42

    oklch(27.2% 0.109 326.5)

  • #2E1554

    #2E1554

    oklch(27.2% 0.108 296.8)

  • #4C0128

    #4C0128

    oklch(27.2% 0.11 356.7)

Open the analogous palette in the generator

Split complementary

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

  • #400A42

    #400A42

    oklch(27.2% 0.109 326.5)

  • #252A00

    #252A00

    oklch(27.1% 0.062 116.5)

  • #002F26

    #002F26

    oklch(27.3% 0.051 175.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400A42

    #400A42

    oklch(27.2% 0.109 326.5)

  • #332400

    #332400

    oklch(27.1% 0.056 85)

  • #002D32

    #002D32

    oklch(27.1% 0.046 206.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400A42

    #400A42

    oklch(27.2% 0.109 326.5)

  • #3E1D00

    #3E1D00

    oklch(27.2% 0.065 57.5)

  • #00310A

    #00310A

    oklch(27.3% 0.083 146.3)

  • #002A40

    #002A40

    oklch(27% 0.06 237.8)

Open the square palette in the generator

Palettes with this color

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

No curated palette has a color within ΔE 0.04 of #400A42.

Similar named colors

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

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