#5D197A#5D197A

#5D197A is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.158 H 313.2°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5D197A
RGBrgb(93, 25, 122)
HSLhsl(282, 66%, 29%)
HSVhsv(282, 80%, 48%)
CMYKcmyk(23.8%, 79.5%, 0%, 52.2%)
CIE-LABlab(25.04, 45.60, -40.66)
CIE-LCHlch(25.04, 61.09, 318.28°)
OKLaboklab(37.42% 0.1081 -0.1149)
OKLCHoklch(37.42% 0.158 313.2)
XYZxyz(8.3741, 4.4278, 18.8221)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197A #367A19
analogous
#2D197A #5D197A #7A1967
triadic
#5D197A #7A5D19 #197A5D
tetradic
#5D197A #7A2D19 #367A19 #19677A
square
#5D197A #7A2D19 #367A19 #19677A
split-complementary
#5D197A #677A19 #197A2D
monochromatic
#130519 #360F47 #5D197A #8423AD #A737D6

Accessibility & contrast

On white

11.14
#5D197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D197A
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197A#FFFFFF#000000##FFFFFF
##5D197A1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#0E3D78
Tritanopia (blue-blind)
#5A3049
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d197a;
/* rgb */ color: rgb(93, 25, 122);
/* oklch */ color: oklch(37.4% 0.158 313.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ea1',
    500: '#5d197a',
    950: '#000000',
  },
}
SCSS
$custom: #5d197a;
$custom-light: #8f5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197a",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 282.062,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37422,
    "c": 0.15777,
    "h": 313.2
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#5D197A
secondary
#61AF40
accent
#E93F72
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197A

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

Preview Lab → · Contrast checker → · Palette generator →

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