#5D196F#5D196F

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

Color values

HEX#5D196F
RGBrgb(93, 25, 111)
HSLhsl(287, 63%, 27%)
HSVhsv(287, 77%, 44%)
CMYKcmyk(16.2%, 77.5%, 0%, 56.5%)
CIE-LABlab(24.23, 43.24, -34.92)
CIE-LCHlch(24.23, 55.58, 321.08°)
OKLaboklab(36.59% 0.1098 -0.0981)
OKLCHoklch(36.59% 0.147 318.2)
XYZxyz(7.7307, 4.1705, 15.4336)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D196F #2B6F19
analogous
#32196F #5D196F #6F1956
triadic
#5D196F #6F5D19 #196F5D
tetradic
#5D196F #6F3219 #2B6F19 #19566F
square
#5D196F #6F3219 #2B6F19 #19566F
split-complementary
#5D196F #566F19 #196F32
monochromatic
#150619 #330E3D #5D196F #8724A1 #AF32D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D196F#FFFFFF#000000##FFFFFF
##5D196F1.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)
#003571
Deuteranopia (green-blind)
#1D3C6D
Tritanopia (blue-blind)
#5D2B43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d196f;
/* rgb */ color: rgb(93, 25, 111);
/* oklch */ color: oklch(36.6% 0.147 318.2);
Tailwind
colors: {
  custom: {
    50: '#8e5e99',
    500: '#5d196f',
    950: '#000000',
  },
}
SCSS
$custom: #5d196f;
$custom-light: #8e5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#5d196f",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 287.442,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36591,
    "c": 0.14722,
    "h": 318.2
  },
  "luminance": 0.0417
}

Semantic roles & 50–950 ramp

primary
#5D196F
secondary
#55A43F
accent
#E64264
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D196F

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

Preview Lab → · Contrast checker → · Palette generator →

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