#5D197C#5D197C

#5D197C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.160 H 312.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5D197C
RGBrgb(93, 25, 124)
HSLhsl(281, 66%, 29%)
HSVhsv(281, 80%, 49%)
CMYKcmyk(25%, 79.8%, 0%, 51.4%)
CIE-LABlab(25.19, 46.04, -41.68)
CIE-LCHlch(25.19, 62.10, 317.85°)
OKLaboklab(37.58% 0.1077 -0.1179)
OKLCHoklch(37.58% 0.16 312.4)
XYZxyz(8.4993, 4.4779, 19.4815)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197C #387C19
analogous
#2C197C #5D197C #7C196A
triadic
#5D197C #7C5D19 #197C5D
tetradic
#5D197C #7C2C19 #387C19 #196A7C
square
#5D197C #7C2C19 #387C19 #196A7C
split-complementary
#5D197C #6A7C19 #197C2C
monochromatic
#130519 #370F49 #5D197C #8323AF #A538D7

Accessibility & contrast

On white

11.08
#5D197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D197C
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197C#FFFFFF#000000##FFFFFF
##5D197C1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#093D7A
Tritanopia (blue-blind)
#59314A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d197c;
/* rgb */ color: rgb(93, 25, 124);
/* oklch */ color: oklch(37.6% 0.160 312.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ea3',
    500: '#5d197c',
    950: '#000000',
  },
}
SCSS
$custom: #5d197c;
$custom-light: #8f5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197c",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 281.212,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37579,
    "c": 0.15972,
    "h": 312.4
  },
  "luminance": 0.04478
}

Semantic roles & 50–950 ramp

primary
#5D197C
secondary
#63B040
accent
#E93E74
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197C

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

Preview Lab → · Contrast checker → · Palette generator →

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