#5F196E#5F196E

#5F196E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.8% C 0.147 H 319.9°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#5F196E
RGBrgb(95, 25, 110)
HSLhsl(289, 63%, 26%)
HSVhsv(289, 77%, 43%)
CMYKcmyk(13.6%, 77.3%, 0%, 56.9%)
CIE-LABlab(24.49, 43.48, -33.83)
CIE-LCHlch(24.49, 55.09, 322.12°)
OKLaboklab(36.83% 0.1125 -0.0948)
OKLCHoklch(36.83% 0.147 319.9)
XYZxyz(7.8811, 4.2543, 15.1549)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F196E #286E19
analogous
#35196E #5F196E #6E1953
triadic
#5F196E #6E5F19 #196E5F
tetradic
#5F196E #6E3519 #286E19 #19536E
square
#5F196E #6E3519 #286E19 #19536E
split-complementary
#5F196E #536E19 #196E35
monochromatic
#160619 #340E3C #5F196E #8A24A0 #B431D0

Accessibility & contrast

On white

11.35
#5F196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F196E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F196E#FFFFFF#000000##FFFFFF
##5F196E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#213D6C
Tritanopia (blue-blind)
#5F2A42
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f196e;
/* rgb */ color: rgb(95, 25, 110);
/* oklch */ color: oklch(36.8% 0.147 319.9);
Tailwind
colors: {
  custom: {
    50: '#905e98',
    500: '#5f196e',
    950: '#000000',
  },
}
SCSS
$custom: #5f196e;
$custom-light: #905e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5f196e",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 289.412,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.14713,
    "h": 319.9
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#5F196E
secondary
#51A33F
accent
#E6425F
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F196E

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

Preview Lab → · Contrast checker → · Palette generator →

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