#540F60#540F60

#540F60 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.2% C 0.140 H 321.1°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#540F60
RGBrgb(84, 15, 96)
HSLhsl(291, 73%, 22%)
HSVhsv(291, 84%, 38%)
CMYKcmyk(12.5%, 84.4%, 0%, 62.4%)
CIE-LABlab(20.33, 41.82, -31.48)
CIE-LCHlch(20.33, 52.34, 323.03°)
OKLaboklab(33.18% 0.1093 -0.0883)
OKLCHoklch(33.18% 0.14 321.1)
XYZxyz(5.9381, 3.0713, 11.3441)
Luminance0.0307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F60 #1B600F
analogous
#2C0F60 #540F60 #600F44
triadic
#540F60 #60540F #0F6054
tetradic
#540F60 #602C0F #1B600F #0F4460
square
#540F60 #602C0F #1B600F #0F4460
split-complementary
#540F60 #44600F #0F602C
monochromatic
#17041A #26072B #540F60 #821795 #B120CA

Accessibility & contrast

On white

13.01
#540F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#540F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F60
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F60#FFFFFF#000000##FFFFFF
##540F601.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#19335E
Tritanopia (blue-blind)
#552038
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #540f60;
/* rgb */ color: rgb(84, 15, 96);
/* oklch */ color: oklch(33.2% 0.140 321.1);
Tailwind
colors: {
  custom: {
    50: '#87578e',
    500: '#540f60',
    950: '#000000',
  },
}
SCSS
$custom: #540f60;
$custom-light: #87578e;
$custom-dark: #000000;
JSON
{
  "hex": "#540f60",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 291.111,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33176,
    "c": 0.14047,
    "h": 321.1
  },
  "luminance": 0.03071
}

Semantic roles & 50–950 ramp

primary
#540F60
secondary
#419932
accent
#F03853
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #540F60

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

Preview Lab → · Contrast checker → · Palette generator →

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