#54176E#54176E

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

Color values

HEX#54176E
RGBrgb(84, 23, 110)
HSLhsl(282, 65%, 26%)
HSVhsv(282, 79%, 43%)
CMYKcmyk(23.6%, 79.1%, 0%, 56.9%)
CIE-LABlab(22.39, 41.87, -37.32)
CIE-LCHlch(22.39, 56.09, 318.29°)
OKLaboklab(34.96% 0.0996 -0.1055)
OKLCHoklch(34.96% 0.145 313.4)
XYZxyz(6.7765, 3.6236, 15.0913)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54176E #316E17
analogous
#28176E #54176E #6E175C
triadic
#54176E #6E5417 #176E54
tetradic
#54176E #6E2817 #316E17 #175C6E
square
#54176E #6E2817 #316E17 #175C6E
split-complementary
#54176E #5C6E17 #176E28
monochromatic
#130519 #2D0C3B #54176E #7B22A1 #A12CD3

Accessibility & contrast

On white

12.18
#54176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54176E
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54176E#FFFFFF#000000##FFFFFF
##54176E1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#0E376C
Tritanopia (blue-blind)
#512B42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54176e;
/* rgb */ color: rgb(84, 23, 110);
/* oklch */ color: oklch(35.0% 0.145 313.4);
Tailwind
colors: {
  custom: {
    50: '#885b98',
    500: '#54176e',
    950: '#000000',
  },
}
SCSS
$custom: #54176e;
$custom-light: #885b98;
$custom-dark: #000000;
JSON
{
  "hex": "#54176e",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 282.069,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34962,
    "c": 0.14506,
    "h": 313.4
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#54176E
secondary
#5CA43D
accent
#E83F72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54176E

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

Preview Lab → · Contrast checker → · Palette generator →

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