#5D197B#5D197B

#5D197B is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.159 H 312.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#5D197B
RGBrgb(93, 25, 123)
HSLhsl(282, 66%, 29%)
HSVhsv(282, 80%, 48%)
CMYKcmyk(24.4%, 79.7%, 0%, 51.8%)
CIE-LABlab(25.11, 45.82, -41.17)
CIE-LCHlch(25.11, 61.59, 318.06°)
OKLaboklab(37.5% 0.1079 -0.1164)
OKLCHoklch(37.5% 0.159 312.8)
XYZxyz(8.4363, 4.4527, 19.1501)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197B #377B19
analogous
#2C197B #5D197B #7B1968
triadic
#5D197B #7B5D19 #197B5D
tetradic
#5D197B #7B2C19 #377B19 #19687B
square
#5D197B #7B2C19 #377B19 #19687B
split-complementary
#5D197B #687B19 #197B2C
monochromatic
#130519 #370F48 #5D197B #8323AE #A638D7

Accessibility & contrast

On white

11.11
#5D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D197B
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197B#FFFFFF#000000##FFFFFF
##5D197B1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#5A3049
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d197b;
/* rgb */ color: rgb(93, 25, 123);
/* oklch */ color: oklch(37.5% 0.159 312.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ea2',
    500: '#5d197b',
    950: '#000000',
  },
}
SCSS
$custom: #5d197b;
$custom-light: #8f5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197b",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 281.633,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.375,
    "c": 0.15874,
    "h": 312.8
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#5D197B
secondary
#62AF40
accent
#E93F73
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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