#5B1652#5B1652

#5B1652 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.124 H 333.7°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#5B1652
RGBrgb(91, 22, 82)
HSLhsl(308, 61%, 22%)
HSVhsv(308, 76%, 36%)
CMYKcmyk(0%, 75.8%, 9.9%, 64.3%)
CIE-LABlab(21.61, 38.35, -20.02)
CIE-LCHlch(21.61, 43.26, 332.44°)
OKLaboklab(34.05% 0.111 -0.0548)
OKLCHoklch(34.05% 0.124 333.7)
XYZxyz(6.1243, 3.4077, 8.3162)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1652 #165B1F
analogous
#42165B #5B1652 #5B1630
triadic
#5B1652 #525B16 #16525B
tetradic
#5B1652 #5B4216 #165B1F #16305B
square
#5B1652 #5B4216 #165B1F #16305B
split-complementary
#5B1652 #305B16 #165B42
monochromatic
#190616 #2A0A26 #5B1652 #8C227E #BE2EAB

Accessibility & contrast

On white

12.49
#5B1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5B1652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1652
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1652#FFFFFF#000000##FFFFFF
##5B16521.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142D54
Deuteranopia (green-blind)
#2D3750
Tritanopia (blue-blind)
#5F1C32
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1652;
/* rgb */ color: rgb(91, 22, 82);
/* oklch */ color: oklch(34.1% 0.124 333.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b83',
    500: '#5b1652',
    950: '#000000',
  },
}
SCSS
$custom: #5b1652;
$custom-light: #8c5b83;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1652",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 307.826,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34052,
    "c": 0.12383,
    "h": 333.7
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#5B1652
secondary
#3B9246
accent
#E45944
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1652

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

Preview Lab → · Contrast checker → · Palette generator →

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