#54197D#54197D

#54197D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.158 H 306.7°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#54197D
RGBrgb(84, 25, 125)
HSLhsl(275, 67%, 29%)
HSVhsv(275, 80%, 49%)
CMYKcmyk(32.8%, 80%, 0%, 51%)
CIE-LABlab(23.87, 44.53, -44.52)
CIE-LCHlch(23.87, 62.97, 315.01°)
OKLaboklab(36.39% 0.0945 -0.1266)
OKLCHoklch(36.39% 0.158 306.7)
XYZxyz(7.7047, 4.0608, 19.7760)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54197D #427D19
analogous
#22197D #54197D #7D1974
triadic
#54197D #7D5419 #197D54
tetradic
#54197D #7D2219 #427D19 #19747D
square
#54197D #7D2219 #427D19 #19747D
split-complementary
#54197D #747D19 #197D22
monochromatic
#11051A #320F4A #54197D #7623B0 #9639D7

Accessibility & contrast

On white

11.59
#54197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#54197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54197D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54197D#FFFFFF#000000##FFFFFF
##54197D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00397B
Tritanopia (blue-blind)
#4D324B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #54197d;
/* rgb */ color: rgb(84, 25, 125);
/* oklch */ color: oklch(36.4% 0.158 306.7);
Tailwind
colors: {
  custom: {
    50: '#895da3',
    500: '#54197d',
    950: '#000000',
  },
}
SCSS
$custom: #54197d;
$custom-light: #895da3;
$custom-dark: #000000;
JSON
{
  "hex": "#54197d",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 275.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.158,
    "h": 306.7
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#54197D
secondary
#6FB140
accent
#EA3E84
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #54197D

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

Preview Lab → · Contrast checker → · Palette generator →

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