#5D196B#5D196B

#5D196B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.143 H 320.2°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#5D196B
RGBrgb(93, 25, 107)
HSLhsl(290, 62%, 26%)
HSVhsv(290, 77%, 42%)
CMYKcmyk(13.1%, 76.6%, 0%, 58%)
CIE-LABlab(23.95, 42.41, -32.78)
CIE-LCHlch(23.95, 53.61, 322.30°)
OKLaboklab(36.3% 0.1102 -0.0919)
OKLCHoklch(36.3% 0.143 320.2)
XYZxyz(7.5153, 4.0843, 14.2996)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D196B #276B19
analogous
#34196B #5D196B #6B1950
triadic
#5D196B #6B5D19 #196B5D
tetradic
#5D196B #6B3419 #276B19 #19506B
square
#5D196B #6B3419 #276B19 #19506B
split-complementary
#5D196B #506B19 #196B34
monochromatic
#160619 #320D39 #5D196B #88259D #B330CE

Accessibility & contrast

On white

11.56
#5D196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5D196B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D196B
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D196B#FFFFFF#000000##FFFFFF
##5D196B1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#213B69
Tritanopia (blue-blind)
#5D2940
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d196b;
/* rgb */ color: rgb(93, 25, 107);
/* oklch */ color: oklch(36.3% 0.143 320.2);
Tailwind
colors: {
  custom: {
    50: '#8e5d96',
    500: '#5d196b',
    950: '#000000',
  },
}
SCSS
$custom: #5d196b;
$custom-light: #8e5d96;
$custom-dark: #000000;
JSON
{
  "hex": "#5d196b",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 289.756,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.14343,
    "h": 320.2
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#5D196B
secondary
#50A13F
accent
#E5435E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5D196B

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

Preview Lab → · Contrast checker → · Palette generator →

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