#403A4D

Closest named color: Onyx (#343A40). oklch(36.2% 0.033 299.2), rgb(64, 58, 77).

Aa

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

About this color

#403A4D is a dark, muted purple. In OKLCH its lightness is 36%, its chroma 0.033 and its hue 299°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.032 away. White text reads best on it, at 10.87:1.

Hue familyPurples
Lightnessdark (36%)
Chromamuted (0.033)
Temperaturein between
Nearest nameOnyx (#343A40)
Black text1.93:1
White text10.87:1

Values

HEX#403A4D
RGBrgb(64, 58, 77)
HSLhsl(259, 14%, 26%)
OKLCHoklch(36.2% 0.033 299.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 #403A4D 10.87:1 AAA Lc -99.1 Preferred for body text
Black text on #403A4D 1.93:1 Fails Lc 8.7 Not readable
#403A4D text on white 10.87:1 AAA Lc 95.2 Preferred for body text
#403A4D text on black 1.93:1 Fails Lc -7.4 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

    #F6F5F7

    oklch(97.1% 0.003 308.4)

  2. Step 100

    100

    #EAE9EE

    oklch(93.6% 0.007 295.4)

  3. Step 200

    200

    #DAD7E1

    oklch(88.4% 0.014 299.8)

  4. Step 300

    300

    #C2BDCF

    oklch(80.8% 0.026 298.5)

  5. Step 400

    400

    #A49CB6

    oklch(70.8% 0.038 299.5)

  6. Step 500

    500

    #8D83A4

    oklch(63% 0.05 298.8)

  7. Step 600

    600

    #786C90

    oklch(55.6% 0.057 299.8)

  8. Step 700

    700

    #655A7A

    oklch(49% 0.052 300.2)

  9. Step 800

    800

    #524A63

    oklch(42.7% 0.042 299.3)

  10. Step 900

    900 (this color)

    #403A4D

    oklch(36.2% 0.033 299.2)

  11. Step 950

    950

    #28242F

    oklch(26.9% 0.021 301.6)

Export this scale for Tailwind in the Tailwind colors tool

#403A4D 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)#363D4E0.018
Deuteranopia (no green cones)#373D4C0.017
Tritanopia (no blue cones)#3E3D400.028
Achromatopsia (no color)#3D3D3D0.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #403A4D

    #403A4D

    oklch(36.2% 0.033 299.2)

  • #3C402D

    #3C402D

    oklch(36.2% 0.032 117.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #403A4D

    #403A4D

    oklch(36.2% 0.033 299.2)

  • #373D50

    #373D50

    oklch(36.3% 0.034 271)

  • #483846

    #483846

    oklch(36.3% 0.032 330.4)

Open the analogous palette in the generator

Split complementary

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

  • #403A4D

    #403A4D

    oklch(36.2% 0.033 299.2)

  • #453D29

    #453D29

    oklch(36.3% 0.034 88.7)

  • #324334

    #324334

    oklch(36.3% 0.034 148)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #403A4D

    #403A4D

    oklch(36.2% 0.033 299.2)

  • #4B3A2C

    #4B3A2C

    oklch(36.3% 0.033 61)

  • #2A443E

    #2A443E

    oklch(36.4% 0.034 178.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #403A4D

    #403A4D

    oklch(36.2% 0.033 299.2)

  • #4E3734

    #4E3734

    oklch(36.2% 0.034 27.2)

  • #3C402D

    #3C402D

    oklch(36.2% 0.032 117.7)

  • #284347

    #284347

    oklch(36.3% 0.033 207.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #403A4D 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.