#540C4C#540C4C

#540C4C is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.126 H 333.3°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#540C4C
RGBrgb(84, 12, 76)
HSLhsl(307, 75%, 19%)
HSVhsv(307, 86%, 33%)
CMYKcmyk(0%, 85.7%, 9.5%, 67.1%)
CIE-LABlab(18.67, 39.05, -20.66)
CIE-LCHlch(18.67, 44.18, 332.12°)
OKLaboklab(31.57% 0.113 -0.0567)
OKLCHoklch(31.57% 0.126 333.3)
XYZxyz(5.0922, 2.6700, 7.0833)
Luminance0.0267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C4C #0C5414
analogous
#380C54 #540C4C #540C28
triadic
#540C4C #4C540C #0C4C54
tetradic
#540C4C #54380C #0C5414 #0C2854
square
#540C4C #54380C #0C5414 #0C2854
split-complementary
#540C4C #28540C #0C5438
monochromatic
#1B0418 #1E041C #540C4C #8A147C #BF1BAD

Accessibility & contrast

On white

13.69
#540C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#540C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540C4C
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C4C#FFFFFF#000000##FFFFFF
##540C4C1.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08274E
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#58142C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #540c4c;
/* rgb */ color: rgb(84, 12, 76);
/* oklch */ color: oklch(31.6% 0.126 333.3);
Tailwind
colors: {
  custom: {
    50: '#87557e',
    500: '#540c4c',
    950: '#000000',
  },
}
SCSS
$custom: #540c4c;
$custom-light: #87557e;
$custom-dark: #000000;
JSON
{
  "hex": "#540c4c",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 306.667,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31571,
    "c": 0.12644,
    "h": 333.3
  },
  "luminance": 0.0267
}

Semantic roles & 50–950 ramp

primary
#540C4C
secondary
#2D8F38
accent
#F24B36
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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