#54166D#54166D

#54166D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.145 H 313.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#54166D
RGBrgb(84, 22, 109)
HSLhsl(283, 66%, 26%)
HSVhsv(283, 80%, 43%)
CMYKcmyk(22.9%, 79.8%, 0%, 57.3%)
CIE-LABlab(22.17, 42.05, -37.02)
CIE-LCHlch(22.17, 56.02, 318.64°)
OKLaboklab(34.79% 0.1008 -0.1046)
OKLCHoklch(34.79% 0.145 313.9)
XYZxyz(6.7029, 3.5630, 14.7997)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54166D #2F6D16
analogous
#29166D #54166D #6D165A
triadic
#54166D #6D5416 #166D54
tetradic
#54166D #6D2916 #2F6D16 #165A6D
square
#54166D #6D2916 #2F6D16 #165A6D
split-complementary
#54166D #5A6D16 #166D29
monochromatic
#140519 #2D0C3A #54166D #7B20A0 #A22BD3

Accessibility & contrast

On white

12.26
#54166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#54166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54166D
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54166D#FFFFFF#000000##FFFFFF
##54166D1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#0F366B
Tritanopia (blue-blind)
#522A41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54166d;
/* rgb */ color: rgb(84, 22, 109);
/* oklch */ color: oklch(34.8% 0.145 313.9);
Tailwind
colors: {
  custom: {
    50: '#885b97',
    500: '#54166d',
    950: '#000000',
  },
}
SCSS
$custom: #54166d;
$custom-light: #885b97;
$custom-dark: #000000;
JSON
{
  "hex": "#54166d",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 282.759,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34786,
    "c": 0.14522,
    "h": 313.9
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#54166D
secondary
#59A33C
accent
#E93E70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54166D

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

Preview Lab → · Contrast checker → · Palette generator →

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