#5B135B#5B135B

#5B135B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.135 H 328.0°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5B135B
RGBrgb(91, 19, 91)
HSLhsl(300, 65%, 22%)
HSVhsv(300, 79%, 36%)
CMYKcmyk(0%, 79.1%, 0%, 64.3%)
CIE-LABlab(21.75, 41.09, -25.82)
CIE-LCHlch(21.75, 48.52, 327.86°)
OKLaboklab(34.33% 0.1147 -0.0715)
OKLCHoklch(34.33% 0.135 328)
XYZxyz(6.4355, 3.4457, 10.2216)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B135B #135B13
analogous
#37135B #5B135B #5B1337
triadic
#5B135B #5B5B13 #135B5B
tetradic
#5B135B #5B3713 #135B13 #13375B
square
#5B135B #5B3713 #135B13 #13375B
split-complementary
#5B135B #375B13 #135B37
monochromatic
#190519 #280828 #5B135B #8E1E8E #C028C0

Accessibility & contrast

On white

12.43
#5B135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5B135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B135B
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B135B#FFFFFF#000000##FFFFFF
##5B135B1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5D
Deuteranopia (green-blind)
#273759
Tritanopia (blue-blind)
#5E1E36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b135b;
/* rgb */ color: rgb(91, 19, 91);
/* oklch */ color: oklch(34.3% 0.135 328.0);
Tailwind
colors: {
  custom: {
    50: '#8c5a8a',
    500: '#5b135b',
    950: '#000000',
  },
}
SCSS
$custom: #5b135b;
$custom-light: #8c5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b135b",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 300,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34325,
    "c": 0.13514,
    "h": 328
  },
  "luminance": 0.03445
}

Semantic roles & 50–950 ramp

primary
#5B135B
secondary
#379337
accent
#E83F3F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B135B

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

Preview Lab → · Contrast checker → · Palette generator →

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