#54177D#54177D

#54177D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.160 H 307.0°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#54177D
RGBrgb(84, 23, 125)
HSLhsl(276, 69%, 29%)
HSVhsv(276, 82%, 49%)
CMYKcmyk(32.8%, 81.6%, 0%, 51%)
CIE-LABlab(23.60, 45.32, -44.96)
CIE-LCHlch(23.60, 63.84, 315.23°)
OKLaboklab(36.2% 0.0963 -0.1279)
OKLCHoklch(36.2% 0.16 307)
XYZxyz(7.6634, 3.9784, 19.7622)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54177D #407D17
analogous
#21177D #54177D #7D1773
triadic
#54177D #7D5417 #177D54
tetradic
#54177D #7D2117 #407D17 #17737D
square
#54177D #7D2117 #407D17 #17737D
split-complementary
#54177D #737D17 #177D21
monochromatic
#11051A #310D49 #54177D #7721B1 #9735DA

Accessibility & contrast

On white

11.70
#54177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54177D
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54177D#FFFFFF#000000##FFFFFF
##54177D1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#4D314A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54177d;
/* rgb */ color: rgb(84, 23, 125);
/* oklch */ color: oklch(36.2% 0.160 307.0);
Tailwind
colors: {
  custom: {
    50: '#895ca3',
    500: '#54177d',
    950: '#000000',
  },
}
SCSS
$custom: #54177d;
$custom-light: #895ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#54177d",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 275.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.1601,
    "h": 307
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#54177D
secondary
#6DB23E
accent
#EC3C83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54177D

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

Preview Lab → · Contrast checker → · Palette generator →

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