#5B137D#5B137D

#5B137D is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.166 H 311.4°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#5B137D
RGBrgb(91, 19, 125)
HSLhsl(281, 74%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(27.2%, 84.8%, 0%, 51%)
CIE-LABlab(24.23, 47.97, -43.89)
CIE-LCHlch(24.23, 65.02, 317.54°)
OKLaboklab(36.86% 0.1097 -0.1245)
OKLCHoklch(36.86% 0.166 311.4)
XYZxyz(8.2482, 4.1708, 19.7686)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B137D #357D13
analogous
#26137D #5B137D #7D136A
triadic
#5B137D #7D5B13 #137D5B
tetradic
#5B137D #7D2613 #357D13 #136A7D
square
#5B137D #7D2613 #357D13 #136A7D
split-complementary
#5B137D #6A7D13 #137D26
monochromatic
#13041B #340B48 #5B137D #821BB2 #A52CDF

Accessibility & contrast

On white

11.45
#5B137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5B137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B137D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B137D#FFFFFF#000000##FFFFFF
##5B137D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#572F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b137d;
/* rgb */ color: rgb(91, 19, 125);
/* oklch */ color: oklch(36.9% 0.166 311.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5b137d',
    950: '#000000',
  },
}
SCSS
$custom: #5b137d;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b137d",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 280.755,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.1659,
    "h": 311.4
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#5B137D
secondary
#60B339
accent
#F03873
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B137D

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

Preview Lab → · Contrast checker → · Palette generator →

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