#54198F#54198F

#54198F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.176 H 300.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#54198F
RGBrgb(84, 25, 143)
HSLhsl(270, 70%, 33%)
HSVhsv(270, 83%, 56%)
CMYKcmyk(41.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(25.45, 48.89, -53.23)
CIE-LCHlch(25.45, 72.27, 312.57°)
OKLaboklab(37.98% 0.0893 -0.1522)
OKLCHoklch(37.98% 0.176 300.4)
XYZxyz(8.9605, 4.5632, 26.3900)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198F #548F19
analogous
#19198F #54198F #8F198F
triadic
#54198F #8F5419 #198F54
tetradic
#54198F #8F1919 #548F19 #198F8F
square
#54198F #8F1919 #548F19 #198F8F
split-complementary
#54198F #8F8F19 #198F19
monochromatic
#170727 #35105B #54198F #7322C3 #9144DE

Accessibility & contrast

On white

10.98
#54198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54198F
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198F#FFFFFF#000000##FFFFFF
##54198F1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#463A55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54198f;
/* rgb */ color: rgb(84, 25, 143);
/* oklch */ color: oklch(38.0% 0.176 300.4);
Tailwind
colors: {
  custom: {
    50: '#8b5eb1',
    500: '#54198f',
    950: '#000000',
  },
}
SCSS
$custom: #54198f;
$custom-light: #8b5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#54198f",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 270,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37978,
    "c": 0.17649,
    "h": 300.4
  },
  "luminance": 0.04563
}

Semantic roles & 50–950 ramp

primary
#54198F
secondary
#82BF44
accent
#ED3B94
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0511
muted
#7D7980

Preview Lab

Preview with #54198F

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

Preview Lab → · Contrast checker → · Palette generator →

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