#5B137F#5B137F

#5B137F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.168 H 310.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5B137F
RGBrgb(91, 19, 127)
HSLhsl(280, 74%, 29%)
HSVhsv(280, 85%, 50%)
CMYKcmyk(28.3%, 85%, 0%, 50.2%)
CIE-LABlab(24.39, 48.40, -44.89)
CIE-LCHlch(24.39, 66.02, 317.16°)
OKLaboklab(37.03% 0.1091 -0.1274)
OKLCHoklch(37.03% 0.168 310.6)
XYZxyz(8.3773, 4.2224, 20.4483)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B137F #377F13
analogous
#25137F #5B137F #7F136D
triadic
#5B137F #7F5B13 #137F5B
tetradic
#5B137F #7F2513 #377F13 #136D7F
square
#5B137F #7F2513 #377F13 #136D7F
split-complementary
#5B137F #6D7F13 #137F25
monochromatic
#13041B #350B4A #5B137F #811BB4 #A42DE0

Accessibility & contrast

On white

11.39
#5B137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B137F
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B137F#FFFFFF#000000##FFFFFF
##5B137F1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#56304B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b137f;
/* rgb */ color: rgb(91, 19, 127);
/* oklch */ color: oklch(37.0% 0.168 310.6);
Tailwind
colors: {
  custom: {
    50: '#8e5ca5',
    500: '#5b137f',
    950: '#000000',
  },
}
SCSS
$custom: #5b137f;
$custom-light: #8e5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b137f",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 280,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37029,
    "c": 0.16777,
    "h": 310.6
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#5B137F
secondary
#62B439
accent
#F13775
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5B137F

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

Preview Lab → · Contrast checker → · Palette generator →

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