#5D137F#5D137F

#5D137F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.168 H 311.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5D137F
RGBrgb(93, 19, 127)
HSLhsl(281, 74%, 29%)
HSVhsv(281, 85%, 50%)
CMYKcmyk(26.8%, 85%, 0%, 50.2%)
CIE-LABlab(24.72, 48.76, -44.34)
CIE-LCHlch(24.72, 65.91, 317.71°)
OKLaboklab(37.32% 0.112 -0.1257)
OKLCHoklch(37.32% 0.168 311.7)
XYZxyz(8.5771, 4.3254, 20.4576)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D137F #357F13
analogous
#27137F #5D137F #7F136B
triadic
#5D137F #7F5D13 #137F5D
tetradic
#5D137F #7F2713 #357F13 #136B7F
square
#5D137F #7F2713 #357F13 #136B7F
split-complementary
#5D137F #6B7F13 #137F27
monochromatic
#13041B #360B4A #5D137F #841BB4 #A72DE0

Accessibility & contrast

On white

11.26
#5D137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D137F
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D137F#FFFFFF#000000##FFFFFF
##5D137F1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#592F4B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d137f;
/* rgb */ color: rgb(93, 19, 127);
/* oklch */ color: oklch(37.3% 0.168 311.7);
Tailwind
colors: {
  custom: {
    50: '#8f5ca5',
    500: '#5d137f',
    950: '#000000',
  },
}
SCSS
$custom: #5d137f;
$custom-light: #8f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d137f",
  "rgb": {
    "r": 93,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 281.111,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37323,
    "c": 0.16837,
    "h": 311.7
  },
  "luminance": 0.04325
}

Semantic roles & 50–950 ramp

primary
#5D137F
secondary
#60B439
accent
#F13772
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D137F

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

Preview Lab → · Contrast checker → · Palette generator →

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