#540C3D

Closest named color: Deep Violet (#490648). oklch(30.7% 0.115 344.5), rgb(84, 12, 61).

Aa

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

About this color

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

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

Values

HEX#540C3D
RGBrgb(84, 12, 61)
HSLhsl(319, 75%, 19%)
OKLCHoklch(30.7% 0.115 344.5)

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 #540C3D 14.02:1 AAA Lc -102.9 Preferred for body text
Black text on #540C3D 1.49:1 Fails Lc 0.0 Not readable
#540C3D text on white 14.02:1 AAA Lc 99.7 Preferred for body text
#540C3D 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

    #FFF1F8

    oklch(97.1% 0.018 345.6)

  2. Step 100

    100

    #FEE0F0

    oklch(93.6% 0.039 344.5)

  3. Step 200

    200

    #FFC6E5

    oklch(88.6% 0.076 344.9)

  4. Step 300

    300

    #FE9BD5

    oklch(80.8% 0.137 344.5)

  5. Step 400

    400

    #F85AC0

    oklch(70.6% 0.218 344.5)

  6. Step 500

    500

    #ED00AF

    oklch(63.1% 0.269 344.5)

  7. Step 600

    600

    #C80093

    oklch(55.6% 0.237 344.5)

  8. Step 700

    700

    #A9007C

    oklch(49.1% 0.209 344.4)

  9. Step 800

    800

    #8C0066

    oklch(42.7% 0.182 344.5)

  10. Step 900

    900

    #760055

    oklch(37.7% 0.161 344.7)

  11. Step 950

    950 (this color)

    #540C3D

    oklch(30.7% 0.115 344.5)

Export this scale for Tailwind in the Tailwind colors tool

#540C3D 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)#16243E0.129
Deuteranopia (no green cones)#2C303B0.112
Tritanopia (no blue cones)#5A0B230.050
Achromatopsia (no color)#2C2C2C0.116

Harmonies

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

Complementary

The opposite hue (180°).

  • #540C3D

    #540C3D

    oklch(30.7% 0.115 344.5)

  • #003A27

    #003A27

    oklch(30.9% 0.066 164.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #540C3D

    #540C3D

    oklch(30.7% 0.115 344.5)

  • #441657

    #441657

    oklch(30.7% 0.116 314.2)

  • #5C061D

    #5C061D

    oklch(30.7% 0.116 14)

Open the analogous palette in the generator

Split complementary

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

  • #540C3D

    #540C3D

    oklch(30.7% 0.115 344.5)

  • #1A3900

    #1A3900

    oklch(30.8% 0.09 134.7)

  • #003838

    #003838

    oklch(30.8% 0.053 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #540C3D

    #540C3D

    oklch(30.7% 0.115 344.5)

  • #353100

    #353100

    oklch(30.8% 0.065 104.6)

  • #003545

    #003545

    oklch(30.6% 0.058 224.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #540C3D

    #540C3D

    oklch(30.7% 0.115 344.5)

  • #432A00

    #432A00

    oklch(30.8% 0.065 74.3)

  • #003A27

    #003A27

    oklch(30.9% 0.066 164.3)

  • #002F60

    #002F60

    oklch(30.8% 0.099 254.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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