#5F196B#5F196B

#5F196B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.144 H 321.4°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#5F196B
RGBrgb(95, 25, 107)
HSLhsl(291, 62%, 26%)
HSVhsv(291, 77%, 42%)
CMYKcmyk(11.2%, 76.6%, 0%, 58%)
CIE-LABlab(24.29, 42.88, -32.22)
CIE-LCHlch(24.29, 53.63, 323.08°)
OKLaboklab(36.61% 0.1127 -0.0901)
OKLCHoklch(36.61% 0.144 321.4)
XYZxyz(7.7205, 4.1901, 14.3092)
Luminance0.0419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F196B #256B19
analogous
#36196B #5F196B #6B194E
triadic
#5F196B #6B5F19 #196B5F
tetradic
#5F196B #6B3619 #256B19 #194E6B
square
#5F196B #6B3619 #256B19 #194E6B
split-complementary
#5F196B #4E6B19 #196B36
monochromatic
#160619 #330D39 #5F196B #8B259D #B730CE

Accessibility & contrast

On white

11.43
#5F196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F196B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F196B#FFFFFF#000000##FFFFFF
##5F196B1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#233C69
Tritanopia (blue-blind)
#602940
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f196b;
/* rgb */ color: rgb(95, 25, 107);
/* oklch */ color: oklch(36.6% 0.144 321.4);
Tailwind
colors: {
  custom: {
    50: '#8f5e96',
    500: '#5f196b',
    950: '#000000',
  },
}
SCSS
$custom: #5f196b;
$custom-light: #8f5e96;
$custom-dark: #000000;
JSON
{
  "hex": "#5f196b",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 291.22,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36615,
    "c": 0.14435,
    "h": 321.4
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#5F196B
secondary
#4DA13F
accent
#E5435A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F196B

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

Preview Lab → · Contrast checker → · Palette generator →

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