#540C4F#540C4F

#540C4F is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.129 H 331.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#540C4F
RGBrgb(84, 12, 79)
HSLhsl(304, 75%, 19%)
HSVhsv(304, 86%, 33%)
CMYKcmyk(0%, 85.7%, 6%, 67.1%)
CIE-LABlab(18.85, 39.56, -22.42)
CIE-LCHlch(18.85, 45.47, 330.46°)
OKLaboklab(31.76% 0.1131 -0.0618)
OKLCHoklch(31.76% 0.129 331.3)
XYZxyz(5.1989, 2.7127, 7.6454)
Luminance0.0271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C4F #0C5411
analogous
#350C54 #540C4F #540C2B
triadic
#540C4F #4F540C #0C4F54
tetradic
#540C4F #54350C #0C5411 #0C2B54
square
#540C4F #54350C #0C5411 #0C2B54
split-complementary
#540C4F #2B540C #0C5435
monochromatic
#1B0419 #1E041D #540C4F #8A1481 #BF1BB4

Accessibility & contrast

On white

13.62
#540C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#540C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540C4F
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C4F#FFFFFF#000000##FFFFFF
##540C4F1.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042851
Deuteranopia (green-blind)
#24314D
Tritanopia (blue-blind)
#58162D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540c4f;
/* rgb */ color: rgb(84, 12, 79);
/* oklch */ color: oklch(31.8% 0.129 331.3);
Tailwind
colors: {
  custom: {
    50: '#875580',
    500: '#540c4f',
    950: '#000000',
  },
}
SCSS
$custom: #540c4f;
$custom-light: #875580;
$custom-dark: #000000;
JSON
{
  "hex": "#540c4f",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 304.167,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31762,
    "c": 0.12885,
    "h": 331.3
  },
  "luminance": 0.02712
}

Semantic roles & 50–950 ramp

primary
#540C4F
secondary
#2D8F33
accent
#F24336
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540C4F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#540C4F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva