#5B1068#5B1068

#5B1068 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.150 H 321.1°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#5B1068
RGBrgb(91, 16, 104)
HSLhsl(291, 73%, 24%)
HSVhsv(291, 85%, 41%)
CMYKcmyk(12.5%, 84.6%, 0%, 59.2%)
CIE-LABlab(22.28, 44.55, -33.52)
CIE-LCHlch(22.28, 55.75, 323.04°)
OKLaboklab(34.99% 0.1164 -0.094)
OKLCHoklch(34.99% 0.15 321.1)
XYZxyz(6.9981, 3.5946, 13.4192)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1068 #1D6810
analogous
#2F1068 #5B1068 #681049
triadic
#5B1068 #685B10 #10685B
tetradic
#5B1068 #682F10 #1D6810 #104968
square
#5B1068 #682F10 #1D6810 #104968
split-complementary
#5B1068 #496810 #10682F
monochromatic
#17041B #2D0833 #5B1068 #89189D #B820D2

Accessibility & contrast

On white

12.22
#5B1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1068
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1068#FFFFFF#000000##FFFFFF
##5B10681.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#1C3866
Tritanopia (blue-blind)
#5C233D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1068;
/* rgb */ color: rgb(91, 16, 104);
/* oklch */ color: oklch(35.0% 0.150 321.1);
Tailwind
colors: {
  custom: {
    50: '#8d5994',
    500: '#5b1068',
    950: '#000000',
  },
}
SCSS
$custom: #5b1068;
$custom-light: #8d5994;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1068",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 291.136,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34987,
    "c": 0.1496,
    "h": 321.1
  },
  "luminance": 0.03594
}

Semantic roles & 50–950 ramp

primary
#5B1068
secondary
#44A034
accent
#F03853
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0D040D
muted
#7D797E

Preview Lab

Preview with #5B1068

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

Preview Lab → · Contrast checker → · Palette generator →

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