#54176F#54176F

#54176F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.146 H 312.9°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#54176F
RGBrgb(84, 23, 111)
HSLhsl(282, 66%, 26%)
HSVhsv(282, 79%, 44%)
CMYKcmyk(24.3%, 79.3%, 0%, 56.5%)
CIE-LABlab(22.46, 42.10, -37.84)
CIE-LCHlch(22.46, 56.61, 318.05°)
OKLaboklab(35.04% 0.0994 -0.107)
OKLCHoklch(35.04% 0.146 312.9)
XYZxyz(6.8313, 3.6455, 15.3796)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54176F #326F17
analogous
#28176F #54176F #6F175E
triadic
#54176F #6F5417 #176F54
tetradic
#54176F #6F2817 #326F17 #175E6F
square
#54176F #6F2817 #326F17 #175E6F
split-complementary
#54176F #5E6F17 #176F28
monochromatic
#130519 #2E0C3C #54176F #7A22A2 #A02DD3

Accessibility & contrast

On white

12.15
#54176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#54176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54176F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54176F#FFFFFF#000000##FFFFFF
##54176F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#0C376D
Tritanopia (blue-blind)
#512B42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54176f;
/* rgb */ color: rgb(84, 23, 111);
/* oklch */ color: oklch(35.0% 0.146 312.9);
Tailwind
colors: {
  custom: {
    50: '#885b99',
    500: '#54176f',
    950: '#000000',
  },
}
SCSS
$custom: #54176f;
$custom-light: #885b99;
$custom-dark: #000000;
JSON
{
  "hex": "#54176f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 281.591,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35041,
    "c": 0.14606,
    "h": 312.9
  },
  "luminance": 0.03645
}

Semantic roles & 50–950 ramp

primary
#54176F
secondary
#5DA53D
accent
#E93F73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54176F

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

Preview Lab → · Contrast checker → · Palette generator →

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