#5D137B#5D137B

#5D137B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.165 H 313.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5D137B
RGBrgb(93, 19, 123)
HSLhsl(283, 73%, 28%)
HSVhsv(283, 85%, 48%)
CMYKcmyk(24.4%, 84.6%, 0%, 51.8%)
CIE-LABlab(24.40, 47.90, -42.33)
CIE-LCHlch(24.40, 63.93, 318.53°)
OKLaboklab(37% 0.113 -0.1198)
OKLCHoklch(37% 0.165 313.3)
XYZxyz(8.3216, 4.2232, 19.1119)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D137B #317B13
analogous
#29137B #5D137B #7B1365
triadic
#5D137B #7B5D13 #137B5D
tetradic
#5D137B #7B2913 #317B13 #13657B
square
#5D137B #7B2913 #317B13 #13657B
split-complementary
#5D137B #657B13 #137B29
monochromatic
#14041B #350B46 #5D137B #851BB0 #AA2ADE

Accessibility & contrast

On white

11.38
#5D137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D137B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D137B#FFFFFF#000000##FFFFFF
##5D137B1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#023B79
Tritanopia (blue-blind)
#5A2D48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d137b;
/* rgb */ color: rgb(93, 19, 123);
/* oklch */ color: oklch(37.0% 0.165 313.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ca2',
    500: '#5d137b',
    950: '#000000',
  },
}
SCSS
$custom: #5d137b;
$custom-light: #8f5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5d137b",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 282.692,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.16469,
    "h": 313.3
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#5D137B
secondary
#5CB139
accent
#F0386D
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D137B

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

Preview Lab → · Contrast checker → · Palette generator →

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