#54176C#54176C

#54176C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 314.3°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#54176C
RGBrgb(84, 23, 108)
HSLhsl(283, 65%, 26%)
HSVhsv(283, 79%, 42%)
CMYKcmyk(22.2%, 78.7%, 0%, 57.6%)
CIE-LABlab(22.23, 41.43, -36.27)
CIE-LCHlch(22.23, 55.06, 318.80°)
OKLaboklab(34.81% 0.0999 -0.1024)
OKLCHoklch(34.81% 0.143 314.3)
XYZxyz(6.6689, 3.5806, 14.5243)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54176C #2F6C17
analogous
#29176C #54176C #6C1759
triadic
#54176C #6C5417 #176C54
tetradic
#54176C #6C2917 #2F6C17 #17596C
square
#54176C #6C2917 #2F6C17 #17596C
split-complementary
#54176C #596C17 #176C29
monochromatic
#140519 #2D0C3A #54176C #7B229E #A22CD1

Accessibility & contrast

On white

12.24
#54176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54176C
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54176C#FFFFFF#000000##FFFFFF
##54176C1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#11376A
Tritanopia (blue-blind)
#522A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54176c;
/* rgb */ color: rgb(84, 23, 108);
/* oklch */ color: oklch(34.8% 0.143 314.3);
Tailwind
colors: {
  custom: {
    50: '#885b97',
    500: '#54176c',
    950: '#000000',
  },
}
SCSS
$custom: #54176c;
$custom-light: #885b97;
$custom-dark: #000000;
JSON
{
  "hex": "#54176c",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 283.059,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34806,
    "c": 0.14307,
    "h": 314.3
  },
  "luminance": 0.0358
}

Semantic roles & 50–950 ramp

primary
#54176C
secondary
#59A23D
accent
#E8406F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54176C

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

Preview Lab → · Contrast checker → · Palette generator →

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