#540C4D#540C4D

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

Color values

HEX#540C4D
RGBrgb(84, 12, 77)
HSLhsl(306, 75%, 19%)
HSVhsv(306, 86%, 33%)
CMYKcmyk(0%, 85.7%, 8.3%, 67.1%)
CIE-LABlab(18.73, 39.22, -21.25)
CIE-LCHlch(18.73, 44.61, 331.55°)
OKLaboklab(31.63% 0.113 -0.0584)
OKLCHoklch(31.63% 0.127 332.7)
XYZxyz(5.1272, 2.6840, 7.2678)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540C4D #0C5413
analogous
#370C54 #540C4D #540C29
triadic
#540C4D #4D540C #0C4D54
tetradic
#540C4D #54370C #0C5413 #0C2954
square
#540C4D #54370C #0C5413 #0C2954
split-complementary
#540C4D #29540C #0C5437
monochromatic
#1B0419 #1E041C #540C4D #8A147E #BF1BAF

Accessibility & contrast

On white

13.66
#540C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540C4D
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540C4D#FFFFFF#000000##FFFFFF
##540C4D1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#25314B
Tritanopia (blue-blind)
#58152C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540c4d;
/* rgb */ color: rgb(84, 12, 77);
/* oklch */ color: oklch(31.6% 0.127 332.7);
Tailwind
colors: {
  custom: {
    50: '#87557f',
    500: '#540c4d',
    950: '#000000',
  },
}
SCSS
$custom: #540c4d;
$custom-light: #87557f;
$custom-dark: #000000;
JSON
{
  "hex": "#540c4d",
  "rgb": {
    "r": 84,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 305.833,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.31634,
    "c": 0.12724,
    "h": 332.7
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#540C4D
secondary
#2D8F36
accent
#F24836
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #540C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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