#5B137B#5B137B

#5B137B is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.7% C 0.164 H 312.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#5B137B
RGBrgb(91, 19, 123)
HSLhsl(282, 73%, 28%)
HSVhsv(282, 85%, 48%)
CMYKcmyk(26%, 84.6%, 0%, 51.8%)
CIE-LABlab(24.06, 47.53, -42.89)
CIE-LCHlch(24.06, 64.02, 317.94°)
OKLaboklab(36.7% 0.1102 -0.1215)
OKLCHoklch(36.7% 0.164 312.2)
XYZxyz(8.1217, 4.1202, 19.1025)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B137B #337B13
analogous
#27137B #5B137B #7B1367
triadic
#5B137B #7B5B13 #137B5B
tetradic
#5B137B #7B2713 #337B13 #13677B
square
#5B137B #7B2713 #337B13 #13677B
split-complementary
#5B137B #677B13 #137B27
monochromatic
#14041B #340B46 #5B137B #821BB0 #A72ADE

Accessibility & contrast

On white

11.51
#5B137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5B137B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B137B
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B137B#FFFFFF#000000##FFFFFF
##5B137B1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#572E48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b137b;
/* rgb */ color: rgb(91, 19, 123);
/* oklch */ color: oklch(36.7% 0.164 312.2);
Tailwind
colors: {
  custom: {
    50: '#8e5ca2',
    500: '#5b137b',
    950: '#000000',
  },
}
SCSS
$custom: #5b137b;
$custom-light: #8e5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b137b",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 281.538,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36697,
    "c": 0.16404,
    "h": 312.2
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#5B137B
secondary
#5EB139
accent
#F03871
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B137B

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

Preview Lab → · Contrast checker → · Palette generator →

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