#54178A#54178A

#54178A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.173 H 302.3°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#54178A
RGBrgb(84, 23, 138)
HSLhsl(272, 71%, 32%)
HSVhsv(272, 83%, 54%)
CMYKcmyk(39.1%, 83.3%, 0%, 45.9%)
CIE-LABlab(24.74, 48.41, -51.28)
CIE-LCHlch(24.74, 70.52, 313.35°)
OKLaboklab(37.35% 0.0924 -0.1465)
OKLCHoklch(37.35% 0.173 302.3)
XYZxyz(8.5489, 4.3326, 24.4257)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54178A #4D8A17
analogous
#1A178A #54178A #8A1787
triadic
#54178A #8A5417 #178A54
tetradic
#54178A #8A1A17 #4D8A17 #17878A
square
#54178A #8A1A17 #4D8A17 #17878A
split-complementary
#54178A #878A17 #178A1A
monochromatic
#140621 #340E56 #54178A #7420BE #933DDF

Accessibility & contrast

On white

11.25
#54178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#54178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54178A
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54178A#FFFFFF#000000##FFFFFF
##54178A1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#483752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54178a;
/* rgb */ color: rgb(84, 23, 138);
/* oklch */ color: oklch(37.3% 0.173 302.3);
Tailwind
colors: {
  custom: {
    50: '#8a5dad',
    500: '#54178a',
    950: '#000000',
  },
}
SCSS
$custom: #54178a;
$custom-light: #8a5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#54178a",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 271.826,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37345,
    "c": 0.17321,
    "h": 302.3
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#54178A
secondary
#7BBE3F
accent
#EE3A8E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54178A

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

Preview Lab → · Contrast checker → · Palette generator →

#54178A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva