#54156D#54156D

#54156D is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 314.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#54156D
RGBrgb(84, 21, 109)
HSLhsl(283, 68%, 25%)
HSVhsv(283, 81%, 43%)
CMYKcmyk(22.9%, 80.7%, 0%, 57.3%)
CIE-LABlab(22.04, 42.43, -37.24)
CIE-LCHlch(22.04, 56.46, 318.73°)
OKLaboklab(34.69% 0.1017 -0.1052)
OKLCHoklch(34.69% 0.146 314)
XYZxyz(6.6842, 3.5255, 14.7934)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54156D #2E6D15
analogous
#28156D #54156D #6D155A
triadic
#54156D #6D5415 #156D54
tetradic
#54156D #6D2815 #2E6D15 #155A6D
square
#54156D #6D2815 #2E6D15 #155A6D
split-complementary
#54156D #5A6D15 #156D28
monochromatic
#14051A #2C0B3A #54156D #7C1FA0 #A329D4

Accessibility & contrast

On white

12.32
#54156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54156D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54156D#FFFFFF#000000##FFFFFF
##54156D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#0D366B
Tritanopia (blue-blind)
#522941
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54156d;
/* rgb */ color: rgb(84, 21, 109);
/* oklch */ color: oklch(34.7% 0.146 314.0);
Tailwind
colors: {
  custom: {
    50: '#885a97',
    500: '#54156d',
    950: '#000000',
  },
}
SCSS
$custom: #54156d;
$custom-light: #885a97;
$custom-dark: #000000;
JSON
{
  "hex": "#54156d",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 282.955,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34691,
    "c": 0.14634,
    "h": 314
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#54156D
secondary
#58A33A
accent
#EB3D6E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54156D

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

Preview Lab → · Contrast checker → · Palette generator →

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