#54196F#54196F

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

Color values

HEX#54196F
RGBrgb(84, 25, 111)
HSLhsl(281, 63%, 27%)
HSVhsv(281, 77%, 44%)
CMYKcmyk(24.3%, 77.5%, 0%, 56.5%)
CIE-LABlab(22.75, 41.27, -37.38)
CIE-LCHlch(22.75, 55.68, 317.84°)
OKLaboklab(35.24% 0.0974 -0.1056)
OKLCHoklch(35.24% 0.144 312.7)
XYZxyz(6.8725, 3.7280, 15.3934)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54196F #346F19
analogous
#29196F #54196F #6F195F
triadic
#54196F #6F5419 #196F54
tetradic
#54196F #6F2919 #346F19 #195F6F
square
#54196F #6F2919 #346F19 #195F6F
split-complementary
#54196F #5F6F19 #196F29
monochromatic
#130619 #2E0E3D #54196F #7A24A1 #9F32D1

Accessibility & contrast

On white

12.03
#54196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#54196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54196F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54196F#FFFFFF#000000##FFFFFF
##54196F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#0F386D
Tritanopia (blue-blind)
#512C43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54196f;
/* rgb */ color: rgb(84, 25, 111);
/* oklch */ color: oklch(35.2% 0.144 312.7);
Tailwind
colors: {
  custom: {
    50: '#885c99',
    500: '#54196f',
    950: '#000000',
  },
}
SCSS
$custom: #54196f;
$custom-light: #885c99;
$custom-dark: #000000;
JSON
{
  "hex": "#54196f",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 281.163,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35245,
    "c": 0.1437,
    "h": 312.7
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#54196F
secondary
#5FA43F
accent
#E64275
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54196F

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

Preview Lab → · Contrast checker → · Palette generator →

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