#5B1064#5B1064

#5B1064 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 323.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5B1064
RGBrgb(91, 16, 100)
HSLhsl(294, 72%, 23%)
HSVhsv(294, 84%, 39%)
CMYKcmyk(9%, 84%, 0%, 60.8%)
CIE-LABlab(22.00, 43.78, -31.36)
CIE-LCHlch(22.00, 53.85, 324.38°)
OKLaboklab(34.7% 0.1169 -0.0877)
OKLCHoklch(34.7% 0.146 323.1)
XYZxyz(6.7997, 3.5152, 12.3745)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1064 #196410
analogous
#311064 #5B1064 #641043
triadic
#5B1064 #645B10 #10645B
tetradic
#5B1064 #643110 #196410 #104364
square
#5B1064 #643110 #196410 #104364
split-complementary
#5B1064 #436410 #106431
monochromatic
#18041A #2B082F #5B1064 #8B1899 #BB21CE

Accessibility & contrast

On white

12.33
#5B1064 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1064 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1064
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1064#FFFFFF#000000##FFFFFF
##5B10641.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F66
Deuteranopia (green-blind)
#1F3762
Tritanopia (blue-blind)
#5C213A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1064;
/* rgb */ color: rgb(91, 16, 100);
/* oklch */ color: oklch(34.7% 0.146 323.1);
Tailwind
colors: {
  custom: {
    50: '#8d5991',
    500: '#5b1064',
    950: '#000000',
  },
}
SCSS
$custom: #5b1064;
$custom-light: #8d5991;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1064",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 100
  },
  "hsl": {
    "h": 293.571,
    "s": 72.414,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34696,
    "c": 0.1461,
    "h": 323.1
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#5B1064
secondary
#3F9D33
accent
#EF394C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5B1064

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

Preview Lab → · Contrast checker → · Palette generator →

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