#5B137E#5B137E

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

Color values

HEX#5B137E
RGBrgb(91, 19, 126)
HSLhsl(280, 74%, 28%)
HSVhsv(280, 85%, 49%)
CMYKcmyk(27.8%, 84.9%, 0%, 50.6%)
CIE-LABlab(24.31, 48.19, -44.39)
CIE-LCHlch(24.31, 65.52, 317.35°)
OKLaboklab(36.95% 0.1094 -0.1259)
OKLCHoklch(36.95% 0.167 311)
XYZxyz(8.3124, 4.1965, 20.1067)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B137E #367E13
analogous
#25137E #5B137E #7E136B
triadic
#5B137E #7E5B13 #137E5B
tetradic
#5B137E #7E2513 #367E13 #136B7E
square
#5B137E #7E2513 #367E13 #136B7E
split-complementary
#5B137E #6B7E13 #137E25
monochromatic
#13041B #350B49 #5B137E #811BB3 #A52CDF

Accessibility & contrast

On white

11.42
#5B137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B137E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B137E#FFFFFF#000000##FFFFFF
##5B137E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#562F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b137e;
/* rgb */ color: rgb(91, 19, 126);
/* oklch */ color: oklch(36.9% 0.167 311.0);
Tailwind
colors: {
  custom: {
    50: '#8e5ca4',
    500: '#5b137e',
    950: '#000000',
  },
}
SCSS
$custom: #5b137e;
$custom-light: #8e5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b137e",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 280.374,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36946,
    "c": 0.16684,
    "h": 311
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#5B137E
secondary
#61B439
accent
#F03774
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B137E

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

Preview Lab → · Contrast checker → · Palette generator →

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