#402968

Closest named color: Royal Purple (#4B006E). oklch(34.3% 0.106 297.3), rgb(64, 41, 104).

Aa

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

About this color

#402968 is a dark, moderately saturated purple. In OKLCH its lightness is 34%, its chroma 0.106 and its hue 297°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Royal Purple (#4B006E), ΔE 0.067 away. White text reads best on it, at 12.10:1.

Hue familyPurples
Lightnessdark (34%)
Chromamoderately saturated (0.106)
Temperaturein between
Nearest nameRoyal Purple (#4B006E)
Black text1.73:1
White text12.10:1

Values

HEX#402968
RGBrgb(64, 41, 104)
HSLhsl(262, 43%, 28%)
OKLCHoklch(34.3% 0.106 297.3)

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 #402968 12.10:1 AAA Lc -100.9 Preferred for body text
Black text on #402968 1.73:1 Fails Lc 0.0 Not readable
#402968 text on white 12.10:1 AAA Lc 97.4 Preferred for body text
#402968 text on black 1.73: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 900.

  1. Step 50

    50

    #F6F4FC

    oklch(97.1% 0.011 297.6)

  2. Step 100

    100

    #EBE7F8

    oklch(93.6% 0.023 296.7)

  3. Step 200

    200

    #DCD4F3

    oklch(88.6% 0.043 297.3)

  4. Step 300

    300

    #C6B6EE

    oklch(80.9% 0.08 297.7)

  5. Step 400

    400

    #AA8EE6

    oklch(70.7% 0.128 297.7)

  6. Step 500

    500

    #9670DE

    oklch(63.1% 0.162 297.5)

  7. Step 600

    600

    #8155CC

    oklch(55.6% 0.177 297.4)

  8. Step 700

    700

    #6D45B0

    oklch(49.1% 0.163 297.2)

  9. Step 800

    800

    #59398F

    oklch(42.7% 0.137 297.4)

  10. Step 900

    900 (this color)

    #402968

    oklch(34.3% 0.106 297.3)

  11. Step 950

    950

    #2A1E43

    oklch(27% 0.067 296.6)

Export this scale for Tailwind in the Tailwind colors tool

#402968 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)#09366A0.075
Deuteranopia (no green cones)#1335670.069
Tritanopia (no blue cones)#3736440.082
Achromatopsia (no color)#3636360.107

Harmonies

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

Complementary

The opposite hue (180°).

  • #402968

    #402968

    oklch(34.3% 0.106 297.3)

  • #363E00

    #363E00

    oklch(34.4% 0.08 117.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402968

    #402968

    oklch(34.3% 0.106 297.3)

  • #20336F

    #20336F

    oklch(34.2% 0.107 267.3)

  • #542055

    #542055

    oklch(34.3% 0.107 326.9)

Open the analogous palette in the generator

Split complementary

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

  • #402968

    #402968

    oklch(34.3% 0.106 297.3)

  • #483600

    #483600

    oklch(34.3% 0.07 87.9)

  • #004615

    #004615

    oklch(34.3% 0.102 147.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402968

    #402968

    oklch(34.3% 0.106 297.3)

  • #582B00

    #582B00

    oklch(34.3% 0.083 56.6)

  • #004338

    #004338

    oklch(34.2% 0.063 177.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402968

    #402968

    oklch(34.3% 0.106 297.3)

  • #651B17

    #651B17

    oklch(34.3% 0.107 27.4)

  • #363E00

    #363E00

    oklch(34.4% 0.08 117.6)

  • #004148

    #004148

    oklch(34.3% 0.059 206.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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