#54196A#54196A

#54196A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.139 H 315.1°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#54196A
RGBrgb(84, 25, 106)
HSLhsl(284, 62%, 26%)
HSVhsv(284, 76%, 42%)
CMYKcmyk(20.8%, 76.4%, 0%, 58.4%)
CIE-LABlab(22.38, 40.15, -34.74)
CIE-LCHlch(22.38, 53.09, 319.13°)
OKLaboklab(34.86% 0.0981 -0.0979)
OKLCHoklch(34.86% 0.139 315.1)
XYZxyz(6.6049, 3.6209, 13.9839)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196A #2F6A19
analogous
#2B196A #54196A #6A1957
triadic
#54196A #6A5419 #196A54
tetradic
#54196A #6A2B19 #2F6A19 #19576A
square
#54196A #6A2B19 #2F6A19 #19576A
split-complementary
#54196A #576A19 #196A2B
monochromatic
#140619 #2D0D38 #54196A #7B259C #A230CD

Accessibility & contrast

On white

12.18
#54196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#54196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54196A
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196A#FFFFFF#000000##FFFFFF
##54196A1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#163768
Tritanopia (blue-blind)
#522A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54196a;
/* rgb */ color: rgb(84, 25, 106);
/* oklch */ color: oklch(34.9% 0.139 315.1);
Tailwind
colors: {
  custom: {
    50: '#875c95',
    500: '#54196a',
    950: '#000000',
  },
}
SCSS
$custom: #54196a;
$custom-light: #875c95;
$custom-dark: #000000;
JSON
{
  "hex": "#54196a",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 283.704,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3486,
    "c": 0.13862,
    "h": 315.1
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#54196A
secondary
#59A03F
accent
#E5436F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54196A

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

Preview Lab → · Contrast checker → · Palette generator →

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