#54178E#54178E

#54178E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.177 H 300.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#54178E
RGBrgb(84, 23, 142)
HSLhsl(271, 72%, 32%)
HSVhsv(271, 84%, 56%)
CMYKcmyk(40.8%, 83.8%, 0%, 44.3%)
CIE-LABlab(25.11, 49.38, -53.17)
CIE-LCHlch(25.11, 72.56, 312.88°)
OKLaboklab(37.71% 0.0911 -0.152)
OKLCHoklch(37.71% 0.177 300.9)
XYZxyz(8.8438, 4.4505, 25.9790)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54178E #518E17
analogous
#18178E #54178E #8E178D
triadic
#54178E #8E5417 #178E54
tetradic
#54178E #8E1817 #518E17 #178D8E
square
#54178E #8E1817 #518E17 #178D8E
split-complementary
#54178E #8D8E17 #178E18
monochromatic
#160625 #350E59 #54178E #7320C3 #923FE0

Accessibility & contrast

On white

11.11
#54178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#54178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54178E
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54178E#FFFFFF#000000##FFFFFF
##54178E1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#473954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54178e;
/* rgb */ color: rgb(84, 23, 142);
/* oklch */ color: oklch(37.7% 0.177 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b5db0',
    500: '#54178e',
    950: '#000000',
  },
}
SCSS
$custom: #54178e;
$custom-light: #8b5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#54178e",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 270.756,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37712,
    "c": 0.17725,
    "h": 300.9
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#54178E
secondary
#7FC040
accent
#EF3992
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54178E

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

Preview Lab → · Contrast checker → · Palette generator →

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