#5B135A#5B135A

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

Color values

HEX#5B135A
RGBrgb(91, 19, 90)
HSLhsl(301, 65%, 22%)
HSVhsv(301, 79%, 36%)
CMYKcmyk(0%, 79.1%, 1.1%, 64.3%)
CIE-LABlab(21.68, 40.90, -25.25)
CIE-LCHlch(21.68, 48.07, 328.31°)
OKLaboklab(34.26% 0.1147 -0.0699)
OKLCHoklch(34.26% 0.134 328.6)
XYZxyz(6.3927, 3.4286, 9.9960)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B135A #135B14
analogous
#38135B #5B135A #5B1336
triadic
#5B135A #5A5B13 #135A5B
tetradic
#5B135A #5B3813 #135B14 #13365B
square
#5B135A #5B3813 #135B14 #13365B
split-complementary
#5B135A #365B13 #135B38
monochromatic
#190519 #280828 #5B135A #8E1E8C #C028BE

Accessibility & contrast

On white

12.46
#5B135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B135A
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B135A#FFFFFF#000000##FFFFFF
##5B135A1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5C
Deuteranopia (green-blind)
#273758
Tritanopia (blue-blind)
#5E1E35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b135a;
/* rgb */ color: rgb(91, 19, 90);
/* oklch */ color: oklch(34.3% 0.134 328.6);
Tailwind
colors: {
  custom: {
    50: '#8c5a89',
    500: '#5b135a',
    950: '#000000',
  },
}
SCSS
$custom: #5b135a;
$custom-light: #8c5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5b135a",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 300.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3426,
    "c": 0.13429,
    "h": 328.6
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#5B135A
secondary
#379338
accent
#E8423F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B135A

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

Preview Lab → · Contrast checker → · Palette generator →

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