#540B56#540B56

#540B56 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.136 H 326.9°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#540B56
RGBrgb(84, 11, 86)
HSLhsl(298, 77%, 19%)
HSVhsv(298, 87%, 34%)
CMYKcmyk(2.3%, 87.2%, 0%, 66.3%)
CIE-LABlab(19.21, 41.11, -26.59)
CIE-LCHlch(19.21, 48.96, 327.10°)
OKLaboklab(32.16% 0.1136 -0.074)
OKLCHoklch(32.16% 0.136 326.9)
XYZxyz(5.4555, 2.7964, 9.0547)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#540B56 #0D560B
analogous
#2F0B56 #540B56 #560B33
triadic
#540B56 #56540B #0B5654
tetradic
#540B56 #562F0B #0D560B #0B3356
square
#540B56 #562F0B #0D560B #0B3356
split-complementary
#540B56 #33560B #0B562F
monochromatic
#1A031B #1F0420 #540B56 #89128C #BE19C3

Accessibility & contrast

On white

13.47
#540B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#540B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #540B56
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##540B56#FFFFFF#000000##FFFFFF
##540B561.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#203254
Tritanopia (blue-blind)
#571931
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #540b56;
/* rgb */ color: rgb(84, 11, 86);
/* oklch */ color: oklch(32.2% 0.136 326.9);
Tailwind
colors: {
  custom: {
    50: '#875586',
    500: '#540b56',
    950: '#000000',
  },
}
SCSS
$custom: #540b56;
$custom-light: #875586;
$custom-dark: #000000;
JSON
{
  "hex": "#540b56",
  "rgb": {
    "r": 84,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 298.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.32161,
    "c": 0.13559,
    "h": 326.9
  },
  "luminance": 0.02796
}

Semantic roles & 50–950 ramp

primary
#540B56
secondary
#2E912B
accent
#F43439
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C030B
muted
#7D787C

Preview Lab

Preview with #540B56

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

Preview Lab → · Contrast checker → · Palette generator →

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