#5D197D#5D197D

#5D197D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.161 H 312.0°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#5D197D
RGBrgb(93, 25, 125)
HSLhsl(281, 67%, 29%)
HSVhsv(281, 80%, 49%)
CMYKcmyk(25.6%, 80%, 0%, 51%)
CIE-LABlab(25.27, 46.26, -42.18)
CIE-LCHlch(25.27, 62.60, 317.64°)
OKLaboklab(37.66% 0.1075 -0.1194)
OKLCHoklch(37.66% 0.161 312)
XYZxyz(8.5628, 4.5033, 19.8162)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197D #397D19
analogous
#2B197D #5D197D #7D196B
triadic
#5D197D #7D5D19 #197D5D
tetradic
#5D197D #7D2B19 #397D19 #196B7D
square
#5D197D #7D2B19 #397D19 #196B7D
split-complementary
#5D197D #6B7D19 #197D2B
monochromatic
#13051A #370F4A #5D197D #8323B0 #A539D7

Accessibility & contrast

On white

11.05
#5D197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5D197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D197D
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197D#FFFFFF#000000##FFFFFF
##5D197D1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#063D7B
Tritanopia (blue-blind)
#59314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d197d;
/* rgb */ color: rgb(93, 25, 125);
/* oklch */ color: oklch(37.7% 0.161 312.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ea3',
    500: '#5d197d',
    950: '#000000',
  },
}
SCSS
$custom: #5d197d;
$custom-light: #8f5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197d",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 280.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37658,
    "c": 0.16069,
    "h": 312
  },
  "luminance": 0.04503
}

Semantic roles & 50–950 ramp

primary
#5D197D
secondary
#65B140
accent
#EA3E75
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197D

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

Preview Lab → · Contrast checker → · Palette generator →

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