#401242

Closest named color: Eggplant Purple (#430541). oklch(28% 0.098 326.1), rgb(64, 18, 66).

Aa

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

About this color

#401242 is a dark, moderately saturated purple. In OKLCH its lightness is 28%, its chroma 0.098 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.021 away. White text reads best on it, at 15.18:1.

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.098)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.38:1
White text15.18:1

Values

HEX#401242
RGBrgb(64, 18, 66)
HSLhsl(298, 57%, 16%)
OKLCHoklch(28% 0.098 326.1)

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 #401242 15.18:1 AAA Lc -104.4 Preferred for body text
Black text on #401242 1.38:1 Fails Lc 0.0 Not readable
#401242 text on white 15.18:1 AAA Lc 101.6 Preferred for body text
#401242 text on black 1.38: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

    #FBF2FB

    oklch(97.1% 0.015 325.7)

  2. Step 100

    100

    #F6E3F6

    oklch(93.7% 0.032 325.8)

  3. Step 200

    200

    #F0CBF0

    oklch(88.5% 0.064 326.1)

  4. Step 300

    300

    #E8A6E9

    oklch(80.9% 0.117 326.1)

  5. Step 400

    400

    #DA71DD

    oklch(70.7% 0.186 326.3)

  6. Step 500

    500

    #CD42D4

    oklch(63.1% 0.237 325.9)

  7. Step 600

    600

    #B902C1

    oklch(55.7% 0.258 326.1)

  8. Step 700

    700

    #9C00A3

    oklch(49.1% 0.228 326)

  9. Step 800

    800

    #810087

    oklch(42.7% 0.199 326)

  10. Step 900

    900

    #68146C

    oklch(37.7% 0.155 326.1)

  11. Step 950

    950 (this color)

    #401242

    oklch(28% 0.098 326.1)

Export this scale for Tailwind in the Tailwind colors tool

#401242 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)#0A22430.101
Deuteranopia (no green cones)#1C28410.087
Tritanopia (no blue cones)#4219280.056
Achromatopsia (no color)#2626260.099

Harmonies

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

Complementary

The opposite hue (180°).

  • #401242

    #401242

    oklch(28% 0.098 326.1)

  • #00330A

    #00330A

    oklch(27.9% 0.085 146)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401242

    #401242

    oklch(28% 0.098 326.1)

  • #2F1A53

    #2F1A53

    oklch(28.1% 0.099 296.4)

  • #4B0B2A

    #4B0B2A

    oklch(28% 0.098 356.4)

Open the analogous palette in the generator

Split complementary

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

  • #401242

    #401242

    oklch(28% 0.098 326.1)

  • #282C00

    #282C00

    oklch(28% 0.063 115)

  • #003128

    #003128

    oklch(28% 0.052 176.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401242

    #401242

    oklch(28% 0.098 326.1)

  • #352600

    #352600

    oklch(27.9% 0.057 86)

  • #002F35

    #002F35

    oklch(27.9% 0.048 208.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401242

    #401242

    oklch(28% 0.098 326.1)

  • #421E00

    #421E00

    oklch(28.1% 0.069 55.6)

  • #00330A

    #00330A

    oklch(27.9% 0.085 146)

  • #002D42

    #002D42

    oklch(28.1% 0.06 235.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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