#5B136E#5B136E

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

Color values

HEX#5B136E
RGBrgb(91, 19, 110)
HSLhsl(287, 71%, 25%)
HSVhsv(287, 83%, 43%)
CMYKcmyk(17.3%, 82.7%, 0%, 56.9%)
CIE-LABlab(23.05, 44.79, -36.18)
CIE-LCHlch(23.05, 57.58, 321.07°)
OKLaboklab(35.67% 0.1129 -0.1018)
OKLCHoklch(35.67% 0.152 317.9)
XYZxyz(7.3613, 3.8160, 15.0976)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B136E #266E13
analogous
#2E136E #5B136E #6E1353
triadic
#5B136E #6E5B13 #136E5B
tetradic
#5B136E #6E2E13 #266E13 #13536E
square
#5B136E #6E2E13 #266E13 #13536E
split-complementary
#5B136E #536E13 #136E2E
monochromatic
#16051A #300A3A #5B136E #861CA2 #B125D6

Accessibility & contrast

On white

11.91
#5B136E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B136E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B136E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B136E#FFFFFF#000000##FFFFFF
##5B136E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#17396C
Tritanopia (blue-blind)
#5A2841
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b136e;
/* rgb */ color: rgb(91, 19, 110);
/* oklch */ color: oklch(35.7% 0.152 317.9);
Tailwind
colors: {
  custom: {
    50: '#8d5b98',
    500: '#5b136e',
    950: '#000000',
  },
}
SCSS
$custom: #5b136e;
$custom-light: #8d5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#5b136e",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 110
  },
  "hsl": {
    "h": 287.473,
    "s": 70.543,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3567,
    "c": 0.15205,
    "h": 317.9
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#5B136E
secondary
#4FA538
accent
#ED3A60
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B136E

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

Preview Lab → · Contrast checker → · Palette generator →

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