#54196B#54196B

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

Color values

HEX#54196B
RGBrgb(84, 25, 107)
HSLhsl(283, 62%, 26%)
HSVhsv(283, 77%, 42%)
CMYKcmyk(21.5%, 76.6%, 0%, 58%)
CIE-LABlab(22.45, 40.37, -35.27)
CIE-LCHlch(22.45, 53.61, 318.86°)
OKLaboklab(34.94% 0.098 -0.0995)
OKLCHoklch(34.94% 0.14 314.6)
XYZxyz(6.6572, 3.6418, 14.2593)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196B #306B19
analogous
#2B196B #54196B #6B1959
triadic
#54196B #6B5419 #196B54
tetradic
#54196B #6B2B19 #306B19 #19596B
square
#54196B #6B2B19 #306B19 #19596B
split-complementary
#54196B #596B19 #196B2B
monochromatic
#130619 #2D0D39 #54196B #7B259D #A230CE

Accessibility & contrast

On white

12.15
#54196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#54196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54196B
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196B#FFFFFF#000000##FFFFFF
##54196B1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#153769
Tritanopia (blue-blind)
#522B40
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54196b;
/* rgb */ color: rgb(84, 25, 107);
/* oklch */ color: oklch(34.9% 0.140 314.6);
Tailwind
colors: {
  custom: {
    50: '#875c96',
    500: '#54196b',
    950: '#000000',
  },
}
SCSS
$custom: #54196b;
$custom-light: #875c96;
$custom-dark: #000000;
JSON
{
  "hex": "#54196b",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 283.171,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34936,
    "c": 0.13963,
    "h": 314.6
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#54196B
secondary
#5BA13F
accent
#E54370
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54196B

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

Preview Lab → · Contrast checker → · Palette generator →

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