#54196E#54196E

#54196E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.143 H 313.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#54196E
RGBrgb(84, 25, 110)
HSLhsl(282, 63%, 26%)
HSVhsv(282, 77%, 43%)
CMYKcmyk(23.6%, 77.3%, 0%, 56.9%)
CIE-LABlab(22.68, 41.05, -36.85)
CIE-LCHlch(22.68, 55.16, 318.08°)
OKLaboklab(35.17% 0.0976 -0.1041)
OKLCHoklch(35.17% 0.143 313.1)
XYZxyz(6.8178, 3.7061, 15.1050)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196E #336E19
analogous
#2A196E #54196E #6E195E
triadic
#54196E #6E5419 #196E54
tetradic
#54196E #6E2A19 #336E19 #195E6E
square
#54196E #6E2A19 #336E19 #195E6E
split-complementary
#54196E #5E6E19 #196E2A
monochromatic
#130619 #2E0E3C #54196E #7A24A0 #A031D0

Accessibility & contrast

On white

12.06
#54196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54196E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196E#FFFFFF#000000##FFFFFF
##54196E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#10376C
Tritanopia (blue-blind)
#512C42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54196e;
/* rgb */ color: rgb(84, 25, 110);
/* oklch */ color: oklch(35.2% 0.143 313.1);
Tailwind
colors: {
  custom: {
    50: '#885c98',
    500: '#54196e',
    950: '#000000',
  },
}
SCSS
$custom: #54196e;
$custom-light: #885c98;
$custom-dark: #000000;
JSON
{
  "hex": "#54196e",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 281.647,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35167,
    "c": 0.14268,
    "h": 313.1
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#54196E
secondary
#5EA33F
accent
#E64274
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54196E

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

Preview Lab → · Contrast checker → · Palette generator →

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