#5F196A#5F196A

#5F196A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.5% C 0.143 H 321.9°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5F196A
RGBrgb(95, 25, 106)
HSLhsl(292, 62%, 26%)
HSVhsv(292, 76%, 42%)
CMYKcmyk(10.4%, 76.4%, 0%, 58.4%)
CIE-LABlab(24.22, 42.67, -31.68)
CIE-LCHlch(24.22, 53.15, 323.41°)
OKLaboklab(36.55% 0.1128 -0.0885)
OKLCHoklch(36.55% 0.143 321.9)
XYZxyz(7.6682, 4.1692, 14.0337)
Luminance0.0417 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F196A #246A19
analogous
#36196A #5F196A #6A194C
triadic
#5F196A #6A5F19 #196A5F
tetradic
#5F196A #6A3619 #246A19 #194C6A
square
#5F196A #6A3619 #246A19 #194C6A
split-complementary
#5F196A #4C6A19 #196A36
monochromatic
#160619 #330D38 #5F196A #8B259C #B830CD

Accessibility & contrast

On white

11.45
#5F196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F196A
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F196A#FFFFFF#000000##FFFFFF
##5F196A1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#243C68
Tritanopia (blue-blind)
#602840
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f196a;
/* rgb */ color: rgb(95, 25, 106);
/* oklch */ color: oklch(36.5% 0.143 321.9);
Tailwind
colors: {
  custom: {
    50: '#8f5e95',
    500: '#5f196a',
    950: '#000000',
  },
}
SCSS
$custom: #5f196a;
$custom-light: #8f5e95;
$custom-dark: #000000;
JSON
{
  "hex": "#5f196a",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 291.852,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36545,
    "c": 0.14341,
    "h": 321.9
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#5F196A
secondary
#4CA03F
accent
#E54359
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F196A

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

Preview Lab → · Contrast checker → · Palette generator →

#5F196A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva