#54198E#54198E

#54198E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.175 H 300.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#54198E
RGBrgb(84, 25, 142)
HSLhsl(270, 70%, 33%)
HSVhsv(270, 82%, 56%)
CMYKcmyk(40.8%, 82.4%, 0%, 44.3%)
CIE-LABlab(25.36, 48.64, -52.76)
CIE-LCHlch(25.36, 71.76, 312.68°)
OKLaboklab(37.89% 0.0896 -0.1508)
OKLCHoklch(37.89% 0.175 300.7)
XYZxyz(8.8851, 4.5330, 25.9928)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198E #538E19
analogous
#19198E #54198E #8E198E
triadic
#54198E #8E5419 #198E54
tetradic
#54198E #8E1919 #538E19 #198E8E
square
#54198E #8E1919 #538E19 #198E8E
split-complementary
#54198E #8E8E19 #198E19
monochromatic
#160726 #35105A #54198E #7322C2 #9143DE

Accessibility & contrast

On white

11.01
#54198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#54198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54198E
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198E#FFFFFF#000000##FFFFFF
##54198E1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#473A54
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54198e;
/* rgb */ color: rgb(84, 25, 142);
/* oklch */ color: oklch(37.9% 0.175 300.7);
Tailwind
colors: {
  custom: {
    50: '#8a5eb0',
    500: '#54198e',
    950: '#000000',
  },
}
SCSS
$custom: #54198e;
$custom-light: #8a5eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#54198e",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 270.256,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37887,
    "c": 0.17546,
    "h": 300.7
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#54198E
secondary
#81BF44
accent
#ED3B93
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54198E

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

Preview Lab → · Contrast checker → · Palette generator →

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