#401248

Closest named color: Eggplant Purple (#430541). oklch(28.4% 0.104 321.4), rgb(64, 18, 72).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (28%)
Chromamoderately saturated (0.104)
Temperaturein between
Nearest nameEggplant Purple (#430541)
Black text1.39:1
White text15.02:1

Values

HEX#401248
RGBrgb(64, 18, 72)
HSLhsl(291, 60%, 18%)
OKLCHoklch(28.4% 0.104 321.4)

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 #401248 15.02:1 AAA Lc -104.3 Preferred for body text
Black text on #401248 1.39:1 Fails Lc 0.0 Not readable
#401248 text on white 15.02:1 AAA Lc 101.4 Preferred for body text
#401248 text on black 1.39: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

    #FBF2FC

    oklch(97.1% 0.016 322.7)

  2. Step 100

    100

    #F5E3F9

    oklch(93.7% 0.035 320.1)

  3. Step 200

    200

    #EFCBF5

    oklch(88.6% 0.069 321.5)

  4. Step 300

    300

    #E5A6F1

    oklch(80.9% 0.123 321)

  5. Step 400

    400

    #D770E9

    oklch(70.8% 0.197 321.5)

  6. Step 500

    500

    #CA3DE2

    oklch(63.1% 0.252 321.4)

  7. Step 600

    600

    #B400CD

    oklch(55.7% 0.265 321.4)

  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

    #661074

    oklch(37.6% 0.164 321.4)

  11. Step 950

    950 (this color)

    #401248

    oklch(28.4% 0.104 321.4)

Export this scale for Tailwind in the Tailwind colors tool

#401248 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)#03234A0.105
Deuteranopia (no green cones)#1828470.090
Tritanopia (no blue cones)#411B2B0.063
Achromatopsia (no color)#2727270.105

Harmonies

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

Complementary

The opposite hue (180°).

  • #401248

    #401248

    oklch(28.4% 0.104 321.4)

  • #043400

    #043400

    oklch(28.3% 0.094 141.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #401248

    #401248

    oklch(28.4% 0.104 321.4)

  • #2D1B58

    #2D1B58

    oklch(28.4% 0.104 292)

  • #4D0A30

    #4D0A30

    oklch(28.6% 0.104 351.5)

Open the analogous palette in the generator

Split complementary

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

  • #401248

    #401248

    oklch(28.4% 0.104 321.4)

  • #2B2D00

    #2B2D00

    oklch(28.6% 0.063 112.4)

  • #003326

    #003326

    oklch(28.6% 0.056 170.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #401248

    #401248

    oklch(28.4% 0.104 321.4)

  • #382600

    #382600

    oklch(28.3% 0.058 81.5)

  • #003134

    #003134

    oklch(28.5% 0.048 201.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #401248

    #401248

    oklch(28.4% 0.104 321.4)

  • #451D00

    #451D00

    oklch(28.4% 0.073 51.9)

  • #043400

    #043400

    oklch(28.3% 0.094 141.4)

  • #002E41

    #002E41

    oklch(28.3% 0.058 232)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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