#5B1966#5B1966

#5B1966 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.138 H 321.6°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#5B1966
RGBrgb(91, 25, 102)
HSLhsl(291, 61%, 25%)
HSVhsv(291, 75%, 40%)
CMYKcmyk(10.8%, 75.5%, 0%, 60%)
CIE-LABlab(23.27, 40.92, -30.64)
CIE-LCHlch(23.27, 51.12, 323.18°)
OKLaboklab(35.64% 0.1079 -0.0856)
OKLCHoklch(35.64% 0.138 321.6)
XYZxyz(7.0600, 3.8791, 12.9447)
Luminance0.0388 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1966 #246619
analogous
#351966 #5B1966 #66194A
triadic
#5B1966 #665B19 #19665B
tetradic
#5B1966 #663519 #246619 #194A66
square
#5B1966 #663519 #246619 #194A66
split-complementary
#5B1966 #4A6619 #196635
monochromatic
#160619 #2F0D35 #5B1966 #872597 #B331C8

Accessibility & contrast

On white

11.83
#5B1966 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5B1966 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1966
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1966#FFFFFF#000000##FFFFFF
##5B19661.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#233A64
Tritanopia (blue-blind)
#5C273E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1966;
/* rgb */ color: rgb(91, 25, 102);
/* oklch */ color: oklch(35.6% 0.138 321.6);
Tailwind
colors: {
  custom: {
    50: '#8c5d92',
    500: '#5b1966',
    950: '#000000',
  },
}
SCSS
$custom: #5b1966;
$custom-light: #8c5d92;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1966",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 102
  },
  "hsl": {
    "h": 291.429,
    "s": 60.63,
    "l": 24.902
  },
  "oklch": {
    "l": 0.35641,
    "c": 0.13777,
    "h": 321.6
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#5B1966
secondary
#4C9C3F
accent
#E4445B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1966

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

Preview Lab → · Contrast checker → · Palette generator →

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