#400F48

Closest named color: Eggplant Purple (#430541). oklch(28.1% 0.108 321.7), rgb(64, 15, 72).

Aa

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

About this color

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

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

Values

HEX#400F48
RGBrgb(64, 15, 72)
HSLhsl(292, 66%, 17%)
OKLCHoklch(28.1% 0.108 321.7)

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 #400F48 15.21:1 AAA Lc -104.4 Preferred for body text
Black text on #400F48 1.37:1 Fails Lc 0.0 Not readable
#400F48 text on white 15.21:1 AAA Lc 101.5 Preferred for body text
#400F48 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

    #FBF2FD

    oklch(97.1% 0.017 320.1)

  2. Step 100

    100

    #F6E2F9

    oklch(93.6% 0.037 321.8)

  3. Step 200

    200

    #F0CAF6

    oklch(88.5% 0.072 321.7)

  4. Step 300

    300

    #E7A4F2

    oklch(80.8% 0.129 321.7)

  5. Step 400

    400

    #D96DEB

    oklch(70.7% 0.204 321.7)

  6. Step 500

    500

    #CD36E5

    oklch(63.2% 0.262 321.7)

  7. Step 600

    600

    #B400CC

    oklch(55.6% 0.265 321.7)

  8. Step 700

    700

    #9800AD

    oklch(49.1% 0.234 321.5)

  9. Step 800

    800

    #7D008F

    oklch(42.7% 0.203 321.4)

  10. Step 900

    900

    #680976

    oklch(37.7% 0.172 321.7)

  11. Step 950

    950 (this color)

    #400F48

    oklch(28.1% 0.108 321.7)

Export this scale for Tailwind in the Tailwind colors tool

#400F48 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)#00224A0.111
Deuteranopia (no green cones)#1627470.094
Tritanopia (no blue cones)#41192A0.065
Achromatopsia (no color)#2626260.109

Harmonies

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

Complementary

The opposite hue (180°).

  • #400F48

    #400F48

    oklch(28.1% 0.108 321.7)

  • #033300

    #033300

    oklch(27.9% 0.093 141.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #400F48

    #400F48

    oklch(28.1% 0.108 321.7)

  • #2C1959

    #2C1959

    oklch(28.1% 0.109 291.5)

  • #4D052F

    #4D052F

    oklch(28.1% 0.109 351.6)

Open the analogous palette in the generator

Split complementary

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

  • #400F48

    #400F48

    oklch(28.1% 0.108 321.7)

  • #2A2C00

    #2A2C00

    oklch(28.2% 0.063 112.4)

  • #003226

    #003226

    oklch(28.2% 0.055 171.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #400F48

    #400F48

    oklch(28.1% 0.108 321.7)

  • #372600

    #372600

    oklch(28.2% 0.058 82.9)

  • #003033

    #003033

    oklch(28.1% 0.048 201.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #400F48

    #400F48

    oklch(28.1% 0.108 321.7)

  • #441C00

    #441C00

    oklch(28.1% 0.073 51.3)

  • #033300

    #033300

    oklch(27.9% 0.093 141.7)

  • #002E40

    #002E40

    oklch(28.2% 0.057 230.6)

Open the square palette in the generator

Palettes with this color

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

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

Similar named colors

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

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