#54178F#54178F

#54178F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.178 H 300.6°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#54178F
RGBrgb(84, 23, 143)
HSLhsl(271, 72%, 33%)
HSVhsv(271, 84%, 56%)
CMYKcmyk(41.3%, 83.9%, 0%, 43.9%)
CIE-LABlab(25.20, 49.62, -53.64)
CIE-LCHlch(25.20, 73.07, 312.77°)
OKLaboklab(37.8% 0.0908 -0.1534)
OKLCHoklch(37.8% 0.178 300.6)
XYZxyz(8.9192, 4.4807, 26.3762)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54178F #528F17
analogous
#18178F #54178F #8F178E
triadic
#54178F #8F5417 #178F54
tetradic
#54178F #8F1817 #528F17 #178E8F
square
#54178F #8F1817 #528F17 #178E8F
split-complementary
#54178F #8E8F17 #178F18
monochromatic
#160626 #350F5A #54178F #731FC4 #9240E0

Accessibility & contrast

On white

11.07
#54178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#54178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54178F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54178F#FFFFFF#000000##FFFFFF
##54178F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#463955
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54178f;
/* rgb */ color: rgb(84, 23, 143);
/* oklch */ color: oklch(37.8% 0.178 300.6);
Tailwind
colors: {
  custom: {
    50: '#8b5db1',
    500: '#54178f',
    950: '#000000',
  },
}
SCSS
$custom: #54178f;
$custom-light: #8b5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#54178f",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 270.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.17825,
    "h": 300.6
  },
  "luminance": 0.04481
}

Semantic roles & 50–950 ramp

primary
#54178F
secondary
#80C141
accent
#EF3992
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54178F

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

Preview Lab → · Contrast checker → · Palette generator →

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