#5B1864#5B1864

#5B1864 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.137 H 322.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#5B1864
RGBrgb(91, 24, 100)
HSLhsl(293, 61%, 24%)
HSVhsv(293, 76%, 39%)
CMYKcmyk(9%, 76%, 0%, 60.8%)
CIE-LABlab(22.99, 40.92, -29.77)
CIE-LCHlch(22.99, 50.61, 323.96°)
OKLaboklab(35.4% 0.1091 -0.0831)
OKLCHoklch(35.4% 0.137 322.7)
XYZxyz(6.9410, 3.7979, 12.4216)
Luminance0.0380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1864 #216418
analogous
#351864 #5B1864 #641847
triadic
#5B1864 #645B18 #18645B
tetradic
#5B1864 #643518 #216418 #184764
square
#5B1864 #643518 #216418 #184764
split-complementary
#5B1864 #476418 #186435
monochromatic
#160619 #2E0C33 #5B1864 #882495 #B530C7

Accessibility & contrast

On white

11.93
#5B1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5B1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1864
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1864#FFFFFF#000000##FFFFFF
##5B18641.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#243962
Tritanopia (blue-blind)
#5C263C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1864;
/* rgb */ color: rgb(91, 24, 100);
/* oklch */ color: oklch(35.4% 0.137 322.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c90',
    500: '#5b1864',
    950: '#000000',
  },
}
SCSS
$custom: #5b1864;
$custom-light: #8c5c90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1864",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 292.895,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35401,
    "c": 0.13717,
    "h": 322.7
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#5B1864
secondary
#499A3E
accent
#E44356
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1864

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

Preview Lab → · Contrast checker → · Palette generator →

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