#5D197F#5D197F

#5D197F is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.163 H 311.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5D197F
RGBrgb(93, 25, 127)
HSLhsl(280, 67%, 30%)
HSVhsv(280, 80%, 50%)
CMYKcmyk(26.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(25.43, 46.70, -43.20)
CIE-LCHlch(25.43, 63.61, 317.23°)
OKLaboklab(37.82% 0.1071 -0.1224)
OKLCHoklch(37.82% 0.163 311.2)
XYZxyz(8.6919, 4.5549, 20.4959)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197F #3B7F19
analogous
#2A197F #5D197F #7F196E
triadic
#5D197F #7F5D19 #197F5D
tetradic
#5D197F #7F2A19 #3B7F19 #196E7F
square
#5D197F #7F2A19 #3B7F19 #196E7F
split-complementary
#5D197F #6E7F19 #197F2A
monochromatic
#13051A #380F4C #5D197F #8223B2 #A43AD8

Accessibility & contrast

On white

10.99
#5D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D197F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197F#FFFFFF#000000##FFFFFF
##5D197F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#013D7D
Tritanopia (blue-blind)
#59324C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d197f;
/* rgb */ color: rgb(93, 25, 127);
/* oklch */ color: oklch(37.8% 0.163 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ea5',
    500: '#5d197f',
    950: '#000000',
  },
}
SCSS
$custom: #5d197f;
$custom-light: #8f5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197f",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 280,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37818,
    "c": 0.16262,
    "h": 311.2
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#5D197F
secondary
#67B341
accent
#EA3E77
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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