#5B135E#5B135E

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

Color values

HEX#5B135E
RGBrgb(91, 19, 94)
HSLhsl(298, 66%, 22%)
HSVhsv(298, 80%, 37%)
CMYKcmyk(3.2%, 79.8%, 0%, 63.1%)
CIE-LABlab(21.94, 41.64, -27.50)
CIE-LCHlch(21.94, 49.91, 326.56°)
OKLaboklab(34.52% 0.1146 -0.0764)
OKLCHoklch(34.52% 0.138 326.3)
XYZxyz(6.5675, 3.4985, 10.9169)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B135E #165E13
analogous
#36135E #5B135E #5E133C
triadic
#5B135E #5E5B13 #135E5B
tetradic
#5B135E #5E3613 #165E13 #133C5E
square
#5B135E #5E3613 #165E13 #133C5E
split-complementary
#5B135E #3C5E13 #135E36
monochromatic
#190519 #2A092B #5B135E #8C1D91 #BE28C4

Accessibility & contrast

On white

12.36
#5B135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B135E
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B135E#FFFFFF#000000##FFFFFF
##5B135E1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#25385C
Tritanopia (blue-blind)
#5E2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b135e;
/* rgb */ color: rgb(91, 19, 94);
/* oklch */ color: oklch(34.5% 0.138 326.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a8c',
    500: '#5b135e',
    950: '#000000',
  },
}
SCSS
$custom: #5b135e;
$custom-light: #8c5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b135e",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 297.6,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.13774,
    "h": 326.3
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#5B135E
secondary
#3B9637
accent
#E93F45
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B135E

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

Preview Lab → · Contrast checker → · Palette generator →

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