#54198D#54198D

#54198D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.174 H 301.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#54198D
RGBrgb(84, 25, 141)
HSLhsl(271, 70%, 33%)
HSVhsv(271, 82%, 55%)
CMYKcmyk(40.4%, 82.3%, 0%, 44.7%)
CIE-LABlab(25.27, 48.40, -52.28)
CIE-LCHlch(25.27, 71.25, 312.79°)
OKLaboklab(37.8% 0.09 -0.1494)
OKLCHoklch(37.8% 0.174 301)
XYZxyz(8.8103, 4.5031, 25.5992)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198D #528D19
analogous
#1A198D #54198D #8D198C
triadic
#54198D #8D5419 #198D54
tetradic
#54198D #8D1A19 #528D19 #198C8D
square
#54198D #8D1A19 #528D19 #198C8D
split-complementary
#54198D #8C8D19 #198D1A
monochromatic
#160725 #351059 #54198D #7322C1 #9243DE

Accessibility & contrast

On white

11.05
#54198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#54198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54198D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198D#FFFFFF#000000##FFFFFF
##54198D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#473954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #54198d;
/* rgb */ color: rgb(84, 25, 141);
/* oklch */ color: oklch(37.8% 0.174 301.0);
Tailwind
colors: {
  custom: {
    50: '#8a5eaf',
    500: '#54198d',
    950: '#000000',
  },
}
SCSS
$custom: #54198d;
$custom-light: #8a5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#54198d",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 270.517,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37795,
    "c": 0.17443,
    "h": 301
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#54198D
secondary
#80BF43
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54198D

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

Preview Lab → · Contrast checker → · Palette generator →

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