#5B137C#5B137C

#5B137C is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.8% C 0.165 H 311.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#5B137C
RGBrgb(91, 19, 124)
HSLhsl(281, 73%, 28%)
HSVhsv(281, 85%, 49%)
CMYKcmyk(26.6%, 84.7%, 0%, 51.4%)
CIE-LABlab(24.15, 47.75, -43.39)
CIE-LCHlch(24.15, 64.52, 317.74°)
OKLaboklab(36.78% 0.1099 -0.123)
OKLCHoklch(36.78% 0.165 311.8)
XYZxyz(8.1847, 4.1454, 19.4339)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B137C #347C13
analogous
#26137C #5B137C #7C1368
triadic
#5B137C #7C5B13 #137C5B
tetradic
#5B137C #7C2613 #347C13 #13687C
square
#5B137C #7C2613 #347C13 #13687C
split-complementary
#5B137C #687C13 #137C26
monochromatic
#13041B #340B47 #5B137C #821BB1 #A62BDF

Accessibility & contrast

On white

11.48
#5B137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B137C
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B137C#FFFFFF#000000##FFFFFF
##5B137C1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#572E49
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b137c;
/* rgb */ color: rgb(91, 19, 124);
/* oklch */ color: oklch(36.8% 0.165 311.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ca3',
    500: '#5b137c',
    950: '#000000',
  },
}
SCSS
$custom: #5b137c;
$custom-light: #8e5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b137c",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 281.143,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3678,
    "c": 0.16497,
    "h": 311.8
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#5B137C
secondary
#5FB239
accent
#F03872
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B137C

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

Preview Lab → · Contrast checker → · Palette generator →

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