#5D137E#5D137E

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

Color values

HEX#5D137E
RGBrgb(93, 19, 126)
HSLhsl(281, 74%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(26.2%, 84.9%, 0%, 50.6%)
CIE-LABlab(24.64, 48.54, -43.84)
CIE-LCHlch(24.64, 65.41, 317.91°)
OKLaboklab(37.24% 0.1122 -0.1243)
OKLCHoklch(37.24% 0.167 312.1)
XYZxyz(8.5123, 4.2995, 20.1161)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D137E #347E13
analogous
#27137E #5D137E #7E1369
triadic
#5D137E #7E5D13 #137E5D
tetradic
#5D137E #7E2713 #347E13 #13697E
square
#5D137E #7E2713 #347E13 #13697E
split-complementary
#5D137E #697E13 #137E27
monochromatic
#14041B #360B49 #5D137E #841BB3 #A82CDF

Accessibility & contrast

On white

11.29
#5D137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D137E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D137E#FFFFFF#000000##FFFFFF
##5D137E1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#592F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d137e;
/* rgb */ color: rgb(93, 19, 126);
/* oklch */ color: oklch(37.2% 0.167 312.1);
Tailwind
colors: {
  custom: {
    50: '#8f5ca4',
    500: '#5d137e',
    950: '#000000',
  },
}
SCSS
$custom: #5d137e;
$custom-light: #8f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d137e",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 281.495,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3724,
    "c": 0.16745,
    "h": 312.1
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#5D137E
secondary
#5FB439
accent
#F03770
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D137E

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

Preview Lab → · Contrast checker → · Palette generator →

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