#5F196D#5F196D

#5F196D is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.146 H 320.4°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#5F196D
RGBrgb(95, 25, 109)
HSLhsl(290, 63%, 26%)
HSVhsv(290, 77%, 43%)
CMYKcmyk(12.8%, 77.1%, 0%, 57.3%)
CIE-LABlab(24.43, 43.28, -33.29)
CIE-LCHlch(24.43, 54.60, 322.43°)
OKLaboklab(36.75% 0.1126 -0.0933)
OKLCHoklch(36.75% 0.146 320.4)
XYZxyz(7.8269, 4.2327, 14.8698)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F196D #276D19
analogous
#35196D #5F196D #6D1951
triadic
#5F196D #6D5F19 #196D5F
tetradic
#5F196D #6D3519 #276D19 #19516D
square
#5F196D #6D3519 #276D19 #19516D
split-complementary
#5F196D #516D19 #196D35
monochromatic
#160619 #340E3B #5F196D #8A249F #B531D0

Accessibility & contrast

On white

11.37
#5F196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F196D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F196D
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F196D#FFFFFF#000000##FFFFFF
##5F196D1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#213C6B
Tritanopia (blue-blind)
#5F2942
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f196d;
/* rgb */ color: rgb(95, 25, 109);
/* oklch */ color: oklch(36.8% 0.146 320.4);
Tailwind
colors: {
  custom: {
    50: '#8f5e97',
    500: '#5f196d',
    950: '#000000',
  },
}
SCSS
$custom: #5f196d;
$custom-light: #8f5e97;
$custom-dark: #000000;
JSON
{
  "hex": "#5f196d",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 290,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.14621,
    "h": 320.4
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#5F196D
secondary
#50A23F
accent
#E6425D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F196D

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

Preview Lab → · Contrast checker → · Palette generator →

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