#54198B#54198B

#54198B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.172 H 301.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#54198B
RGBrgb(84, 25, 139)
HSLhsl(271, 70%, 32%)
HSVhsv(271, 82%, 55%)
CMYKcmyk(39.6%, 82%, 0%, 45.5%)
CIE-LABlab(25.09, 47.91, -51.34)
CIE-LCHlch(25.09, 70.22, 313.02°)
OKLaboklab(37.61% 0.0906 -0.1467)
OKLCHoklch(37.61% 0.172 301.7)
XYZxyz(8.6629, 4.4441, 24.8225)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54198B #508B19
analogous
#1B198B #54198B #8B1989
triadic
#54198B #8B5419 #198B54
tetradic
#54198B #8B1B19 #508B19 #19898B
square
#54198B #8B1B19 #508B19 #19898B
split-complementary
#54198B #898B19 #198B1B
monochromatic
#150623 #351057 #54198B #7322BF #9241DD

Accessibility & contrast

On white

11.12
#54198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54198B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54198B#FFFFFF#000000##FFFFFF
##54198B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003B89
Tritanopia (blue-blind)
#483853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54198b;
/* rgb */ color: rgb(84, 25, 139);
/* oklch */ color: oklch(37.6% 0.172 301.7);
Tailwind
colors: {
  custom: {
    50: '#8a5eae',
    500: '#54198b',
    950: '#000000',
  },
}
SCSS
$custom: #54198b;
$custom-light: #8a5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#54198b",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 271.053,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.17238,
    "h": 301.7
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#54198B
secondary
#7EBE42
accent
#EC3B91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #54198B

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

Preview Lab → · Contrast checker → · Palette generator →

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