#54198C#54198C

#54198C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.173 H 301.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#54198C
RGBrgb(84, 25, 140)
HSLhsl(271, 70%, 32%)
HSVhsv(271, 82%, 55%)
CMYKcmyk(40%, 82.1%, 0%, 45.1%)
CIE-LABlab(25.18, 48.15, -51.81)
CIE-LCHlch(25.18, 70.73, 312.90°)
OKLaboklab(37.7% 0.0903 -0.148)
OKLCHoklch(37.7% 0.173 301.4)
XYZxyz(8.7362, 4.4735, 25.2091)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198C #518C19
analogous
#1B198C #54198C #8C198A
triadic
#54198C #8C5419 #198C54
tetradic
#54198C #8C1B19 #518C19 #198A8C
square
#54198C #8C1B19 #518C19 #198A8C
split-complementary
#54198C #8A8C19 #198C1B
monochromatic
#160624 #351058 #54198C #7322C0 #9242DD

Accessibility & contrast

On white

11.08
#54198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#54198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54198C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198C#FFFFFF#000000##FFFFFF
##54198C1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#473953
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54198c;
/* rgb */ color: rgb(84, 25, 140);
/* oklch */ color: oklch(37.7% 0.173 301.4);
Tailwind
colors: {
  custom: {
    50: '#8a5eaf',
    500: '#54198c',
    950: '#000000',
  },
}
SCSS
$custom: #54198c;
$custom-light: #8a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#54198c",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 270.783,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37704,
    "c": 0.1734,
    "h": 301.4
  },
  "luminance": 0.04474
}

Semantic roles & 50–950 ramp

primary
#54198C
secondary
#7FBE43
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54198C

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

Preview Lab → · Contrast checker → · Palette generator →

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