#5D196E#5D196E

#5D196E is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.146 H 318.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5D196E
RGBrgb(93, 25, 110)
HSLhsl(288, 63%, 26%)
HSVhsv(288, 77%, 43%)
CMYKcmyk(15.5%, 77.3%, 0%, 56.9%)
CIE-LABlab(24.16, 43.03, -34.39)
CIE-LCHlch(24.16, 55.09, 321.37°)
OKLaboklab(36.52% 0.1099 -0.0966)
OKLCHoklch(36.52% 0.146 318.7)
XYZxyz(7.6759, 4.1486, 15.1453)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D196E #2A6E19
analogous
#33196E #5D196E #6E1955
triadic
#5D196E #6E5D19 #196E5D
tetradic
#5D196E #6E3319 #2A6E19 #19556E
square
#5D196E #6E3319 #2A6E19 #19556E
split-complementary
#5D196E #556E19 #196E33
monochromatic
#150619 #330E3C #5D196E #8724A0 #B031D0

Accessibility & contrast

On white

11.48
#5D196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D196E
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D196E#FFFFFF#000000##FFFFFF
##5D196E1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#1E3C6C
Tritanopia (blue-blind)
#5D2A42
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d196e;
/* rgb */ color: rgb(93, 25, 110);
/* oklch */ color: oklch(36.5% 0.146 318.7);
Tailwind
colors: {
  custom: {
    50: '#8e5e98',
    500: '#5d196e',
    950: '#000000',
  },
}
SCSS
$custom: #5d196e;
$custom-light: #8e5e98;
$custom-dark: #000000;
JSON
{
  "hex": "#5d196e",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 288,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36518,
    "c": 0.14627,
    "h": 318.7
  },
  "luminance": 0.04148
}

Semantic roles & 50–950 ramp

primary
#5D196E
secondary
#53A33F
accent
#E64263
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D196E

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

Preview Lab → · Contrast checker → · Palette generator →

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