#54156B#54156B

#54156B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 315.0°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#54156B
RGBrgb(84, 21, 107)
HSLhsl(284, 67%, 25%)
HSVhsv(284, 80%, 42%)
CMYKcmyk(21.5%, 80.4%, 0%, 58%)
CIE-LABlab(21.88, 41.99, -36.19)
CIE-LCHlch(21.88, 55.44, 319.25°)
OKLaboklab(34.53% 0.1021 -0.1021)
OKLCHoklch(34.53% 0.144 315)
XYZxyz(6.5777, 3.4829, 14.2328)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54156B #2C6B15
analogous
#29156B #54156B #6B1557
triadic
#54156B #6B5415 #156B54
tetradic
#54156B #6B2915 #2C6B15 #15576B
square
#54156B #6B2915 #2C6B15 #15576B
split-complementary
#54156B #576B15 #156B29
monochromatic
#14051A #2C0B38 #54156B #7C1F9E #A429D1

Accessibility & contrast

On white

12.38
#54156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#54156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54156B
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54156B#FFFFFF#000000##FFFFFF
##54156B1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#113669
Tritanopia (blue-blind)
#52293F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54156b;
/* rgb */ color: rgb(84, 21, 107);
/* oklch */ color: oklch(34.5% 0.144 315.0);
Tailwind
colors: {
  custom: {
    50: '#885a96',
    500: '#54156b',
    950: '#000000',
  },
}
SCSS
$custom: #54156b;
$custom-light: #885a96;
$custom-dark: #000000;
JSON
{
  "hex": "#54156b",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 283.953,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34534,
    "c": 0.14438,
    "h": 315
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#54156B
secondary
#56A23A
accent
#EA3E6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54156B

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

Preview Lab → · Contrast checker → · Palette generator →

#54156B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva