#540F4A#540F4A

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

Color values

HEX#540F4A
RGBrgb(84, 15, 74)
HSLhsl(309, 70%, 19%)
HSVhsv(309, 82%, 33%)
CMYKcmyk(0%, 82.1%, 11.9%, 67.1%)
CIE-LABlab(18.89, 37.74, -18.94)
CIE-LCHlch(18.89, 42.23, 333.35°)
OKLaboklab(31.69% 0.11 -0.0518)
OKLCHoklch(31.69% 0.122 334.8)
XYZxyz(5.0631, 2.7213, 6.7359)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F4A #0F5419
analogous
#3C0F54 #540F4A #540F28
triadic
#540F4A #4A540F #0F4A54
tetradic
#540F4A #543C0F #0F5419 #0F2854
square
#540F4A #543C0F #0F5419 #0F2854
split-complementary
#540F4A #28540F #0F543C
monochromatic
#1A0517 #20061C #540F4A #881878 #BC22A5

Accessibility & contrast

On white

13.60
#540F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #540F4A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F4A#FFFFFF#000000##FFFFFF
##540F4A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274C
Deuteranopia (green-blind)
#283148
Tritanopia (blue-blind)
#58152B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f4a;
/* rgb */ color: rgb(84, 15, 74);
/* oklch */ color: oklch(31.7% 0.122 334.8);
Tailwind
colors: {
  custom: {
    50: '#87567c',
    500: '#540f4a',
    950: '#000000',
  },
}
SCSS
$custom: #540f4a;
$custom-light: #87567c;
$custom-dark: #000000;
JSON
{
  "hex": "#540f4a",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 308.696,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31692,
    "c": 0.1216,
    "h": 334.8
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#540F4A
secondary
#318E3E
accent
#ED553B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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