#5B1355#5B1355

#5B1355 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.130 H 331.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#5B1355
RGBrgb(91, 19, 85)
HSLhsl(305, 65%, 22%)
HSVhsv(305, 79%, 36%)
CMYKcmyk(0%, 79.1%, 6.6%, 64.3%)
CIE-LABlab(21.38, 40.01, -22.39)
CIE-LCHlch(21.38, 45.85, 330.77°)
OKLaboklab(33.94% 0.1146 -0.0616)
OKLCHoklch(33.94% 0.13 331.7)
XYZxyz(6.1870, 3.3463, 8.9126)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1355 #135B19
analogous
#3D135B #5B1355 #5B1331
triadic
#5B1355 #555B13 #13555B
tetradic
#5B1355 #5B3D13 #135B19 #13315B
square
#5B1355 #5B3D13 #135B19 #13315B
split-complementary
#5B1355 #315B13 #135B3D
monochromatic
#190518 #280826 #5B1355 #8E1E84 #C028B4

Accessibility & contrast

On white

12.58
#5B1355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5B1355 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1355
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1355#FFFFFF#000000##FFFFFF
##5B13551.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2D57
Deuteranopia (green-blind)
#2A3753
Tritanopia (blue-blind)
#5F1B33
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1355;
/* rgb */ color: rgb(91, 19, 85);
/* oklch */ color: oklch(33.9% 0.130 331.7);
Tailwind
colors: {
  custom: {
    50: '#8c5a85',
    500: '#5b1355',
    950: '#000000',
  },
}
SCSS
$custom: #5b1355;
$custom-light: #8c5a85;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1355",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 305,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.13008,
    "h": 331.7
  },
  "luminance": 0.03346
}

Semantic roles & 50–950 ramp

primary
#5B1355
secondary
#37933E
accent
#E84D3F
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1355

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

Preview Lab → · Contrast checker → · Palette generator →

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