#54176D#54176D

#54176D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 313.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#54176D
RGBrgb(84, 23, 109)
HSLhsl(283, 65%, 26%)
HSVhsv(283, 79%, 43%)
CMYKcmyk(22.9%, 78.9%, 0%, 57.3%)
CIE-LABlab(22.31, 41.65, -36.80)
CIE-LCHlch(22.31, 55.57, 318.54°)
OKLaboklab(34.88% 0.0998 -0.1039)
OKLCHoklch(34.88% 0.144 313.8)
XYZxyz(6.7224, 3.6020, 14.8062)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54176D #306D17
analogous
#29176D #54176D #6D175B
triadic
#54176D #6D5417 #176D54
tetradic
#54176D #6D2917 #306D17 #175B6D
square
#54176D #6D2917 #306D17 #175B6D
split-complementary
#54176D #5B6D17 #176D29
monochromatic
#130519 #2D0C3A #54176D #7B22A0 #A22CD2

Accessibility & contrast

On white

12.21
#54176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#54176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54176D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54176D#FFFFFF#000000##FFFFFF
##54176D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#10376B
Tritanopia (blue-blind)
#512A41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54176d;
/* rgb */ color: rgb(84, 23, 109);
/* oklch */ color: oklch(34.9% 0.144 313.8);
Tailwind
colors: {
  custom: {
    50: '#885b97',
    500: '#54176d',
    950: '#000000',
  },
}
SCSS
$custom: #54176d;
$custom-light: #885b97;
$custom-dark: #000000;
JSON
{
  "hex": "#54176d",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 282.558,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34884,
    "c": 0.14407,
    "h": 313.8
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#54176D
secondary
#5BA33D
accent
#E84071
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54176D

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

Preview Lab → · Contrast checker → · Palette generator →

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