#5B136F#5B136F

#5B136F is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.7% C 0.153 H 317.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5B136F
RGBrgb(91, 19, 111)
HSLhsl(287, 71%, 25%)
HSVhsv(287, 83%, 44%)
CMYKcmyk(18%, 82.9%, 0%, 56.5%)
CIE-LABlab(23.13, 45.00, -36.71)
CIE-LCHlch(23.13, 58.07, 320.79°)
OKLaboklab(35.75% 0.1127 -0.1034)
OKLCHoklch(35.75% 0.153 317.5)
XYZxyz(7.4161, 3.8379, 15.3860)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B136F #276F13
analogous
#2D136F #5B136F #6F1355
triadic
#5B136F #6F5B13 #136F5B
tetradic
#5B136F #6F2D13 #276F13 #13556F
square
#5B136F #6F2D13 #276F13 #13556F
split-complementary
#5B136F #556F13 #136F2D
monochromatic
#15041A #300A3B #5B136F #861CA3 #B125D8

Accessibility & contrast

On white

11.88
#5B136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B136F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B136F
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B136F#FFFFFF#000000##FFFFFF
##5B136F1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#5A2841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b136f;
/* rgb */ color: rgb(91, 19, 111);
/* oklch */ color: oklch(35.7% 0.153 317.5);
Tailwind
colors: {
  custom: {
    50: '#8d5b99',
    500: '#5b136f',
    950: '#000000',
  },
}
SCSS
$custom: #5b136f;
$custom-light: #8d5b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5b136f",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 286.957,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35746,
    "c": 0.15296,
    "h": 317.5
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#5B136F
secondary
#50A638
accent
#EE3A61
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B136F

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

Preview Lab → · Contrast checker → · Palette generator →

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