#540A41

Closest named color: Deep Violet (#490648). oklch(30.8% 0.12 341.2), rgb(84, 10, 65).

Aa

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

About this color

#540A41 is a dark, moderately saturated purple. In OKLCH its lightness is 31%, its chroma 0.120 and its hue 341°. Its hue sits on the warm side of the wheel. The nearest named color is Deep Violet (#490648), ΔE 0.033 away. White text reads best on it, at 14.03:1.

Hue familyPurples
Lightnessdark (31%)
Chromamoderately saturated (0.120)
Temperaturewarm
Nearest nameDeep Violet (#490648)
Black text1.49:1
White text14.03:1

Values

HEX#540A41
RGBrgb(84, 10, 65)
HSLhsl(315, 79%, 18%)
OKLCHoklch(30.8% 0.12 341.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 #540A41 14.03:1 AAA Lc -102.9 Preferred for body text
Black text on #540A41 1.49:1 Fails Lc 0.0 Not readable
#540A41 text on white 14.03:1 AAA Lc 99.7 Preferred for body text
#540A41 text on black 1.49: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

    #FFF1F9

    oklch(97.1% 0.018 342)

  2. Step 100

    100

    #FEE0F2

    oklch(93.6% 0.04 341.2)

  3. Step 200

    200

    #FEC5E9

    oklch(88.5% 0.079 340.6)

  4. Step 300

    300

    #FE9ADB

    oklch(80.8% 0.142 341.4)

  5. Step 400

    400

    #F857C9

    oklch(70.7% 0.228 341.3)

  6. Step 500

    500

    #EA00B8

    oklch(63.1% 0.272 341.2)

  7. Step 600

    600

    #C6009B

    oklch(55.6% 0.24 341.3)

  8. Step 700

    700

    #A70083

    oklch(49% 0.212 341)

  9. Step 800

    800

    #8A006C

    oklch(42.7% 0.185 340.9)

  10. Step 900

    900

    #74005A

    oklch(37.6% 0.163 341.1)

  11. Step 950

    950 (this color)

    #540A41

    oklch(30.8% 0.12 341.2)

Export this scale for Tailwind in the Tailwind colors tool

#540A41 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)#1224420.134
Deuteranopia (no green cones)#2A303F0.115
Tritanopia (no blue cones)#5A0C250.055
Achromatopsia (no color)#2C2C2C0.121

Harmonies

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

Complementary

The opposite hue (180°).

  • #540A41

    #540A41

    oklch(30.8% 0.12 341.2)

  • #003A24

    #003A24

    oklch(30.8% 0.069 160.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #540A41

    #540A41

    oklch(30.8% 0.12 341.2)

  • #43165B

    #43165B

    oklch(30.8% 0.12 311.2)

  • #5D0320

    #5D0320

    oklch(30.8% 0.12 11.3)

Open the analogous palette in the generator

Split complementary

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

  • #540A41

    #540A41

    oklch(30.8% 0.12 341.2)

  • #203800

    #203800

    oklch(30.9% 0.084 131.1)

  • #003836

    #003836

    oklch(30.8% 0.053 190.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #540A41

    #540A41

    oklch(30.8% 0.12 341.2)

  • #373000

    #373000

    oklch(30.7% 0.064 100.5)

  • #003644

    #003644

    oklch(30.8% 0.057 221.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #540A41

    #540A41

    oklch(30.8% 0.12 341.2)

  • #442900

    #442900

    oklch(30.7% 0.066 71.4)

  • #003A24

    #003A24

    oklch(30.8% 0.069 160.9)

  • #00305B

    #00305B

    oklch(30.7% 0.091 251.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #540A41 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.