#54196D#54196D

#54196D is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.142 H 313.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#54196D
RGBrgb(84, 25, 109)
HSLhsl(282, 63%, 26%)
HSVhsv(282, 77%, 43%)
CMYKcmyk(22.9%, 77.1%, 0%, 57.3%)
CIE-LABlab(22.60, 40.82, -36.33)
CIE-LCHlch(22.60, 54.64, 318.33°)
OKLaboklab(35.09% 0.0977 -0.1026)
OKLCHoklch(35.09% 0.142 313.6)
XYZxyz(6.7636, 3.6844, 14.8199)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196D #326D19
analogous
#2A196D #54196D #6D195C
triadic
#54196D #6D5419 #196D54
tetradic
#54196D #6D2A19 #326D19 #195C6D
square
#54196D #6D2A19 #326D19 #195C6D
split-complementary
#54196D #5C6D19 #196D2A
monochromatic
#130619 #2E0E3B #54196D #7A249F #A031D0

Accessibility & contrast

On white

12.09
#54196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#54196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54196D
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196D#FFFFFF#000000##FFFFFF
##54196D1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#12376B
Tritanopia (blue-blind)
#512C41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54196d;
/* rgb */ color: rgb(84, 25, 109);
/* oklch */ color: oklch(35.1% 0.142 313.6);
Tailwind
colors: {
  custom: {
    50: '#875c97',
    500: '#54196d',
    950: '#000000',
  },
}
SCSS
$custom: #54196d;
$custom-light: #875c97;
$custom-dark: #000000;
JSON
{
  "hex": "#54196d",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 282.143,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35089,
    "c": 0.14165,
    "h": 313.6
  },
  "luminance": 0.03684
}

Semantic roles & 50–950 ramp

primary
#54196D
secondary
#5DA23F
accent
#E64273
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54196D

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

Preview Lab → · Contrast checker → · Palette generator →

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