#54176B#54176B

#54176B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.142 H 314.8°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#54176B
RGBrgb(84, 23, 107)
HSLhsl(284, 65%, 25%)
HSVhsv(284, 79%, 42%)
CMYKcmyk(21.5%, 78.5%, 0%, 58%)
CIE-LABlab(22.16, 41.21, -35.74)
CIE-LCHlch(22.16, 54.55, 319.06°)
OKLaboklab(34.73% 0.1001 -0.1008)
OKLCHoklch(34.73% 0.142 314.8)
XYZxyz(6.6160, 3.5594, 14.2456)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54176B #2E6B17
analogous
#2A176B #54176B #6B1758
triadic
#54176B #6B5417 #176B54
tetradic
#54176B #6B2A17 #2E6B17 #17586B
square
#54176B #6B2A17 #2E6B17 #17586B
split-complementary
#54176B #586B17 #176B2A
monochromatic
#140519 #2C0C39 #54176B #7C229D #A32DD0

Accessibility & contrast

On white

12.27
#54176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#54176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54176B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54176B#FFFFFF#000000##FFFFFF
##54176B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#133769
Tritanopia (blue-blind)
#522A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54176b;
/* rgb */ color: rgb(84, 23, 107);
/* oklch */ color: oklch(34.7% 0.142 314.8);
Tailwind
colors: {
  custom: {
    50: '#875b96',
    500: '#54176b',
    950: '#000000',
  },
}
SCSS
$custom: #54176b;
$custom-light: #875b96;
$custom-dark: #000000;
JSON
{
  "hex": "#54176b",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 283.571,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34728,
    "c": 0.14207,
    "h": 314.8
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#54176B
secondary
#58A13D
accent
#E8406E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54176B

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

Preview Lab → · Contrast checker → · Palette generator →

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