#40123F

Closest named color: Eggplant Purple (#430541). oklch(27.8% 0.095 328.6), rgb(64, 18, 63).

Aa

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

About this color

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

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

Values

HEX#40123F
RGBrgb(64, 18, 63)
HSLhsl(301, 56%, 16%)
OKLCHoklch(27.8% 0.095 328.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 #40123F 15.25:1 AAA Lc -104.5 Preferred for body text
Black text on #40123F 1.37:1 Fails Lc 0.0 Not readable
#40123F text on white 15.25:1 AAA Lc 101.7 Preferred for body text
#40123F 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

    #FBF2FB

    oklch(97.1% 0.015 325.7)

  2. Step 100

    100

    #F7E3F5

    oklch(93.7% 0.032 329)

  3. Step 200

    200

    #F1CBEE

    oklch(88.5% 0.063 328.6)

  4. Step 300

    300

    #E9A6E5

    oklch(80.9% 0.113 328.6)

  5. Step 400

    400

    #DB72D7

    oklch(70.7% 0.18 328.7)

  6. Step 500

    500

    #CF44CC

    oklch(63.1% 0.229 328.8)

  7. Step 600

    600

    #BA0DB9

    oklch(55.6% 0.25 328.6)

  8. Step 700

    700

    #9E009E

    oklch(49.1% 0.226 328.4)

  9. Step 800

    800

    #820581

    oklch(42.7% 0.192 328.7)

  10. Step 900

    900

    #691668

    oklch(37.8% 0.15 328.6)

  11. Step 950

    950 (this color)

    #40123F

    oklch(27.8% 0.095 328.6)

Export this scale for Tailwind in the Tailwind colors tool

#40123F 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)#0D21400.099
Deuteranopia (no green cones)#1E283E0.085
Tritanopia (no blue cones)#4218260.053
Achromatopsia (no color)#2525250.096

Harmonies

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

Complementary

The opposite hue (180°).

  • #40123F

    #40123F

    oklch(27.8% 0.095 328.6)

  • #003210

    #003210

    oklch(27.7% 0.078 148.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40123F

    #40123F

    oklch(27.8% 0.095 328.6)

  • #301A50

    #301A50

    oklch(27.9% 0.095 298.9)

  • #4A0C28

    #4A0C28

    oklch(27.8% 0.095 358.2)

Open the analogous palette in the generator

Split complementary

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

  • #40123F

    #40123F

    oklch(27.8% 0.095 328.6)

  • #252C00

    #252C00

    oklch(27.7% 0.065 118.7)

  • #003029

    #003029

    oklch(27.7% 0.05 180)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40123F

    #40123F

    oklch(27.8% 0.095 328.6)

  • #342600

    #342600

    oklch(27.7% 0.057 87.5)

  • #002F35

    #002F35

    oklch(27.9% 0.048 208.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40123F

    #40123F

    oklch(27.8% 0.095 328.6)

  • #401F00

    #401F00

    oklch(28% 0.066 58.8)

  • #003210

    #003210

    oklch(27.7% 0.078 148.9)

  • #002C43

    #002C43

    oklch(27.8% 0.062 238)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40123F 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.