#54156C#54156C

#54156C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.145 H 314.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#54156C
RGBrgb(84, 21, 108)
HSLhsl(283, 67%, 25%)
HSVhsv(283, 81%, 42%)
CMYKcmyk(22.2%, 80.6%, 0%, 57.6%)
CIE-LABlab(21.96, 42.21, -36.71)
CIE-LCHlch(21.96, 55.94, 318.99°)
OKLaboklab(34.61% 0.1019 -0.1037)
OKLCHoklch(34.61% 0.145 314.5)
XYZxyz(6.6306, 3.5041, 14.5115)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54156C #2D6C15
analogous
#28156C #54156C #6C1559
triadic
#54156C #6C5415 #156C54
tetradic
#54156C #6C2815 #2D6C15 #15596C
square
#54156C #6C2815 #2D6C15 #15596C
split-complementary
#54156C #596C15 #156C28
monochromatic
#14051A #2C0B39 #54156C #7C1F9F #A429D2

Accessibility & contrast

On white

12.35
#54156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54156C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54156C#FFFFFF#000000##FFFFFF
##54156C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0F366A
Tritanopia (blue-blind)
#522940
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54156c;
/* rgb */ color: rgb(84, 21, 108);
/* oklch */ color: oklch(34.6% 0.145 314.5);
Tailwind
colors: {
  custom: {
    50: '#885a97',
    500: '#54156c',
    950: '#000000',
  },
}
SCSS
$custom: #54156c;
$custom-light: #885a97;
$custom-dark: #000000;
JSON
{
  "hex": "#54156c",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 283.448,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34612,
    "c": 0.14537,
    "h": 314.5
  },
  "luminance": 0.03504
}

Semantic roles & 50–950 ramp

primary
#54156C
secondary
#57A33A
accent
#EA3D6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54156C

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

Preview Lab → · Contrast checker → · Palette generator →

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