#54198A#54198A

#54198A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.171 H 302.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#54198A
RGBrgb(84, 25, 138)
HSLhsl(271, 69%, 32%)
HSVhsv(271, 82%, 54%)
CMYKcmyk(39.1%, 81.9%, 0%, 45.9%)
CIE-LABlab(25.00, 47.67, -50.86)
CIE-LCHlch(25.00, 69.70, 313.14°)
OKLaboklab(37.52% 0.0909 -0.1453)
OKLCHoklch(37.52% 0.171 302)
XYZxyz(8.5901, 4.4150, 24.4395)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198A #4F8A19
analogous
#1B198A #54198A #8A1988
triadic
#54198A #8A5419 #198A54
tetradic
#54198A #8A1B19 #4F8A19 #19888A
square
#54198A #8A1B19 #4F8A19 #19888A
split-complementary
#54198A #888A19 #198A1B
monochromatic
#150622 #341056 #54198A #7422BE #9241DD

Accessibility & contrast

On white

11.15
#54198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54198A
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198A#FFFFFF#000000##FFFFFF
##54198A1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#483852
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54198a;
/* rgb */ color: rgb(84, 25, 138);
/* oklch */ color: oklch(37.5% 0.171 302.0);
Tailwind
colors: {
  custom: {
    50: '#8a5ead',
    500: '#54198a',
    950: '#000000',
  },
}
SCSS
$custom: #54198a;
$custom-light: #8a5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#54198a",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 271.327,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37524,
    "c": 0.17136,
    "h": 302
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#54198A
secondary
#7DBD42
accent
#EC3C90
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54198A

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

Preview Lab → · Contrast checker → · Palette generator →

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