#5B1964#5B1964

#5B1964 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.136 H 322.6°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#5B1964
RGBrgb(91, 25, 100)
HSLhsl(293, 60%, 25%)
HSVhsv(293, 75%, 39%)
CMYKcmyk(9%, 75%, 0%, 60.8%)
CIE-LABlab(23.13, 40.52, -29.54)
CIE-LCHlch(23.13, 50.15, 323.90°)
OKLaboklab(35.5% 0.108 -0.0824)
OKLCHoklch(35.5% 0.136 322.6)
XYZxyz(6.9620, 3.8399, 12.4286)
Luminance0.0384 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1964 #226419
analogous
#361964 #5B1964 #641948
triadic
#5B1964 #645B19 #19645B
tetradic
#5B1964 #643619 #226419 #194864
square
#5B1964 #643619 #226419 #194864
split-complementary
#5B1964 #486419 #196436
monochromatic
#160618 #2E0D33 #5B1964 #882595 #B431C6

Accessibility & contrast

On white

11.88
#5B1964 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5B1964 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1964
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1964#FFFFFF#000000##FFFFFF
##5B19641.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#243A62
Tritanopia (blue-blind)
#5C263D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1964;
/* rgb */ color: rgb(91, 25, 100);
/* oklch */ color: oklch(35.5% 0.136 322.6);
Tailwind
colors: {
  custom: {
    50: '#8c5d90',
    500: '#5b1964',
    950: '#000000',
  },
}
SCSS
$custom: #5b1964;
$custom-light: #8c5d90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1964",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 100
  },
  "hsl": {
    "h": 292.8,
    "s": 60,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35504,
    "c": 0.13588,
    "h": 322.6
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#5B1964
secondary
#4A9A3F
accent
#E34558
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1964

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

Preview Lab → · Contrast checker → · Palette generator →

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