#5B135D#5B135D

#5B135D is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.137 H 326.9°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5B135D
RGBrgb(91, 19, 93)
HSLhsl(298, 66%, 22%)
HSVhsv(298, 80%, 36%)
CMYKcmyk(2.2%, 79.6%, 0%, 63.5%)
CIE-LABlab(21.87, 41.46, -26.94)
CIE-LCHlch(21.87, 49.44, 326.98°)
OKLaboklab(34.46% 0.1146 -0.0748)
OKLCHoklch(34.46% 0.137 326.9)
XYZxyz(6.5229, 3.4807, 10.6821)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B135D #155D13
analogous
#36135D #5B135D #5D133A
triadic
#5B135D #5D5B13 #135D5B
tetradic
#5B135D #5D3613 #155D13 #133A5D
square
#5B135D #5D3613 #155D13 #133A5D
split-complementary
#5B135D #3A5D13 #135D36
monochromatic
#190519 #29092A #5B135D #8D1D90 #BE28C3

Accessibility & contrast

On white

12.38
#5B135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B135D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B135D#FFFFFF#000000##FFFFFF
##5B135D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F5F
Deuteranopia (green-blind)
#26375B
Tritanopia (blue-blind)
#5E1F37
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b135d;
/* rgb */ color: rgb(91, 19, 93);
/* oklch */ color: oklch(34.5% 0.137 326.9);
Tailwind
colors: {
  custom: {
    50: '#8c5a8b',
    500: '#5b135d',
    950: '#000000',
  },
}
SCSS
$custom: #5b135d;
$custom-light: #8c5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b135d",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 298.378,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34457,
    "c": 0.13687,
    "h": 326.9
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#5B135D
secondary
#399537
accent
#E93F43
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B135D

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

Preview Lab → · Contrast checker → · Palette generator →

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