#54196C#54196C

#54196C is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.141 H 314.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#54196C
RGBrgb(84, 25, 108)
HSLhsl(283, 62%, 26%)
HSVhsv(283, 77%, 42%)
CMYKcmyk(22.2%, 76.9%, 0%, 57.6%)
CIE-LABlab(22.52, 40.60, -35.80)
CIE-LCHlch(22.52, 54.13, 318.59°)
OKLaboklab(35.01% 0.0979 -0.101)
OKLCHoklch(35.01% 0.141 314.1)
XYZxyz(6.7101, 3.6630, 14.5380)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196C #316C19
analogous
#2A196C #54196C #6C195A
triadic
#54196C #6C5419 #196C54
tetradic
#54196C #6C2A19 #316C19 #195A6C
square
#54196C #6C2A19 #316C19 #195A6C
split-complementary
#54196C #5A6C19 #196C2A
monochromatic
#130619 #2D0D3A #54196C #7B259E #A130CF

Accessibility & contrast

On white

12.12
#54196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54196C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196C#FFFFFF#000000##FFFFFF
##54196C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#13376A
Tritanopia (blue-blind)
#522B41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54196c;
/* rgb */ color: rgb(84, 25, 108);
/* oklch */ color: oklch(35.0% 0.141 314.1);
Tailwind
colors: {
  custom: {
    50: '#875c97',
    500: '#54196c',
    950: '#000000',
  },
}
SCSS
$custom: #54196c;
$custom-light: #875c97;
$custom-dark: #000000;
JSON
{
  "hex": "#54196c",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 282.651,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35012,
    "c": 0.14065,
    "h": 314.1
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#54196C
secondary
#5CA13F
accent
#E54272
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54196C

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

Preview Lab → · Contrast checker → · Palette generator →

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