#540C4E#540C4E

#540C4E is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.7% C 0.128 H 332.0°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#540C4E
RGBrgb(84, 12, 78)
HSLhsl(305, 75%, 19%)
HSVhsv(305, 86%, 33%)
CMYKcmyk(0%, 85.7%, 7.1%, 67.1%)
CIE-LABlab(18.79, 39.39, -21.83)
CIE-LCHlch(18.79, 45.04, 331.00°)
OKLaboklab(31.7% 0.113 -0.0601)
OKLCHoklch(31.7% 0.128 332)
XYZxyz(5.1628, 2.6983, 7.4552)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C4E #0C5412
analogous
#360C54 #540C4E #540C2A
triadic
#540C4E #4E540C #0C4E54
tetradic
#540C4E #54360C #0C5412 #0C2A54
square
#540C4E #54360C #0C5412 #0C2A54
split-complementary
#540C4E #2A540C #0C5436
monochromatic
#1B0419 #1E041C #540C4E #8A1480 #BF1BB1

Accessibility & contrast

On white

13.64
#540C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C4E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C4E#FFFFFF#000000##FFFFFF
##540C4E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#25314C
Tritanopia (blue-blind)
#58152D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540c4e;
/* rgb */ color: rgb(84, 12, 78);
/* oklch */ color: oklch(31.7% 0.128 332.0);
Tailwind
colors: {
  custom: {
    50: '#875580',
    500: '#540c4e',
    950: '#000000',
  },
}
SCSS
$custom: #540c4e;
$custom-light: #875580;
$custom-dark: #000000;
JSON
{
  "hex": "#540c4e",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 305,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.12804,
    "h": 332
  },
  "luminance": 0.02698
}

Semantic roles & 50–950 ramp

primary
#540C4E
secondary
#2D8F35
accent
#F24636
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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