#5B1066#5B1066

#5B1066 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.148 H 322.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5B1066
RGBrgb(91, 16, 102)
HSLhsl(292, 73%, 23%)
HSVhsv(292, 84%, 40%)
CMYKcmyk(10.8%, 84.3%, 0%, 60%)
CIE-LABlab(22.14, 44.16, -32.45)
CIE-LCHlch(22.14, 54.80, 323.69°)
OKLaboklab(34.84% 0.1166 -0.0909)
OKLCHoklch(34.84% 0.148 322.1)
XYZxyz(6.8977, 3.5544, 12.8906)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1066 #1B6610
analogous
#301066 #5B1066 #661046
triadic
#5B1066 #665B10 #10665B
tetradic
#5B1066 #663010 #1B6610 #104666
square
#5B1066 #663010 #1B6610 #104666
split-complementary
#5B1066 #466610 #106630
monochromatic
#18041A #2C0831 #5B1066 #8A189B #B921D0

Accessibility & contrast

On white

12.27
#5B1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1066
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1066#FFFFFF#000000##FFFFFF
##5B10661.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#1D3864
Tritanopia (blue-blind)
#5C223B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1066;
/* rgb */ color: rgb(91, 16, 102);
/* oklch */ color: oklch(34.8% 0.148 322.1);
Tailwind
colors: {
  custom: {
    50: '#8d5992',
    500: '#5b1066',
    950: '#000000',
  },
}
SCSS
$custom: #5b1066;
$custom-light: #8d5992;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1066",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 292.326,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.14784,
    "h": 322.1
  },
  "luminance": 0.03554
}

Semantic roles & 50–950 ramp

primary
#5B1066
secondary
#419E33
accent
#F03850
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B1066

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

Preview Lab → · Contrast checker → · Palette generator →

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