#5D137D#5D137D

#5D137D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.167 H 312.5°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#5D137D
RGBrgb(93, 19, 125)
HSLhsl(282, 74%, 28%)
HSVhsv(282, 85%, 49%)
CMYKcmyk(25.6%, 84.8%, 0%, 51%)
CIE-LABlab(24.56, 48.33, -43.34)
CIE-LCHlch(24.56, 64.91, 318.11°)
OKLaboklab(37.16% 0.1125 -0.1228)
OKLCHoklch(37.16% 0.167 312.5)
XYZxyz(8.4481, 4.2738, 19.7780)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D137D #337D13
analogous
#28137D #5D137D #7D1368
triadic
#5D137D #7D5D13 #137D5D
tetradic
#5D137D #7D2813 #337D13 #13687D
square
#5D137D #7D2813 #337D13 #13687D
split-complementary
#5D137D #687D13 #137D28
monochromatic
#14041B #350B48 #5D137D #851BB2 #A92CDF

Accessibility & contrast

On white

11.32
#5D137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5D137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D137D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D137D#FFFFFF#000000##FFFFFF
##5D137D1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#592E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d137d;
/* rgb */ color: rgb(93, 19, 125);
/* oklch */ color: oklch(37.2% 0.167 312.5);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5d137d',
    950: '#000000',
  },
}
SCSS
$custom: #5d137d;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d137d",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 281.887,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37158,
    "c": 0.16653,
    "h": 312.5
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#5D137D
secondary
#5EB339
accent
#F0386F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D137D

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

Preview Lab → · Contrast checker → · Palette generator →

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