#401138

Closest named color: Aubergine (#3D0734). oklch(27.3% 0.09 335.2), rgb(64, 17, 56).

Aa

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

About this color

#401138 is a dark, moderately saturated purple. In OKLCH its lightness is 27%, its chroma 0.090 and its hue 335°. Its hue sits on the warm side of the wheel. The nearest named color is Aubergine (#3D0734), ΔE 0.021 away. White text reads best on it, at 15.49:1.

Hue familyPurples
Lightnessdark (27%)
Chromamoderately saturated (0.090)
Temperaturewarm
Nearest nameAubergine (#3D0734)
Black text1.35:1
White text15.49:1

Values

HEX#401138
RGBrgb(64, 17, 56)
HSLhsl(310, 58%, 16%)
OKLCHoklch(27.3% 0.09 335.2)

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 #401138 15.49:1 AAA Lc -104.7 Preferred for body text
Black text on #401138 1.35:1 Fails Lc 0.0 Not readable
#401138 text on white 15.49:1 AAA Lc 101.9 Preferred for body text
#401138 text on black 1.35: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

    #FCF2F9

    oklch(97.1% 0.014 336.1)

  2. Step 100

    100

    #F8E3F2

    oklch(93.7% 0.03 335.9)

  3. Step 200

    200

    #F3CBE9

    oklch(88.5% 0.06 335)

  4. Step 300

    300

    #ECA6DC

    oklch(80.9% 0.107 335.1)

  5. Step 400

    400

    #DF73CA

    oklch(70.7% 0.17 335)

  6. Step 500

    500

    #D345BC

    oklch(63% 0.218 335)

  7. Step 600

    600

    #BF16A8

    oklch(55.7% 0.237 335.3)

  8. Step 700

    700

    #A30090

    oklch(49.1% 0.218 334.9)

  9. Step 800

    800

    #850B75

    oklch(42.7% 0.182 335)

  10. Step 900

    900

    #6B175E

    oklch(37.6% 0.142 335.2)

  11. Step 950

    950 (this color)

    #401138

    oklch(27.3% 0.09 335.2)

Export this scale for Tailwind in the Tailwind colors tool

#401138 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)#1120390.096
Deuteranopia (no green cones)#2027370.084
Tritanopia (no blue cones)#4314220.045
Achromatopsia (no color)#2424240.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #401138

    #401138

    oklch(27.3% 0.09 335.2)

  • #003018

    #003018

    oklch(27.2% 0.067 155.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401138

    #401138

    oklch(27.3% 0.09 335.2)

  • #321849

    #321849

    oklch(27.3% 0.089 305.8)

  • #480D21

    #480D21

    oklch(27.2% 0.089 5.1)

Open the analogous palette in the generator

Split complementary

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

  • #401138

    #401138

    oklch(27.3% 0.09 335.2)

  • #1F2C00

    #1F2C00

    oklch(27.1% 0.068 125.1)

  • #002F2A

    #002F2A

    oklch(27.4% 0.049 183.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401138

    #401138

    oklch(27.3% 0.09 335.2)

  • #302600

    #302600

    oklch(27.2% 0.056 93.9)

  • #002D36

    #002D36

    oklch(27.4% 0.048 215)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401138

    #401138

    oklch(27.3% 0.09 335.2)

  • #3B2000

    #3B2000

    oklch(27.3% 0.061 65.8)

  • #003018

    #003018

    oklch(27.2% 0.067 155.5)

  • #002946

    #002946

    oklch(27.2% 0.069 245.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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