#540F4B#540F4B

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

Color values

HEX#540F4B
RGBrgb(84, 15, 75)
HSLhsl(308, 70%, 19%)
HSVhsv(308, 82%, 33%)
CMYKcmyk(0%, 82.1%, 10.7%, 67.1%)
CIE-LABlab(18.95, 37.91, -19.54)
CIE-LCHlch(18.95, 42.65, 332.74°)
OKLaboklab(31.75% 0.1101 -0.0535)
OKLCHoklch(31.75% 0.122 334.1)
XYZxyz(5.0970, 2.7349, 6.9147)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540F4B #0F5418
analogous
#3B0F54 #540F4B #540F29
triadic
#540F4B #4B540F #0F4B54
tetradic
#540F4B #543B0F #0F5418 #0F2954
square
#540F4B #543B0F #0F5418 #0F2954
split-complementary
#540F4B #29540F #0F543B
monochromatic
#1A0517 #20061D #540F4B #881879 #BC22A8

Accessibility & contrast

On white

13.58
#540F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#540F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540F4B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540F4B#FFFFFF#000000##FFFFFF
##540F4B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D284D
Deuteranopia (green-blind)
#273249
Tritanopia (blue-blind)
#58162C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #540f4b;
/* rgb */ color: rgb(84, 15, 75);
/* oklch */ color: oklch(31.8% 0.122 334.1);
Tailwind
colors: {
  custom: {
    50: '#87567d',
    500: '#540f4b',
    950: '#000000',
  },
}
SCSS
$custom: #540f4b;
$custom-light: #87567d;
$custom-dark: #000000;
JSON
{
  "hex": "#540f4b",
  "rgb": {
    "r": 84,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 307.826,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.12241,
    "h": 334.1
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#540F4B
secondary
#318E3D
accent
#ED523B
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #540F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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