#54197B#54197B

#54197B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.156 H 307.5°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#54197B
RGBrgb(84, 25, 123)
HSLhsl(276, 66%, 29%)
HSVhsv(276, 80%, 48%)
CMYKcmyk(31.7%, 79.7%, 0%, 51.8%)
CIE-LABlab(23.71, 44.06, -43.52)
CIE-LCHlch(23.71, 61.93, 315.35°)
OKLaboklab(36.22% 0.095 -0.1237)
OKLCHoklch(36.22% 0.156 307.5)
XYZxyz(7.5782, 4.0102, 19.1099)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54197B #407B19
analogous
#23197B #54197B #7B1971
triadic
#54197B #7B5419 #197B54
tetradic
#54197B #7B2319 #407B19 #19717B
square
#54197B #7B2319 #407B19 #19717B
split-complementary
#54197B #717B19 #197B23
monochromatic
#110519 #310F48 #54197B #7723AE #9738D7

Accessibility & contrast

On white

11.65
#54197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#54197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54197B
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54197B#FFFFFF#000000##FFFFFF
##54197B1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#4D3249
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54197b;
/* rgb */ color: rgb(84, 25, 123);
/* oklch */ color: oklch(36.2% 0.156 307.5);
Tailwind
colors: {
  custom: {
    50: '#895da2',
    500: '#54197b',
    950: '#000000',
  },
}
SCSS
$custom: #54197b;
$custom-light: #895da2;
$custom-dark: #000000;
JSON
{
  "hex": "#54197b",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 276.122,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36218,
    "c": 0.15596,
    "h": 307.5
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#54197B
secondary
#6DAF40
accent
#E93F83
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54197B

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

Preview Lab → · Contrast checker → · Palette generator →

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