#5B1867#5B1867

#5B1867 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.140 H 321.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#5B1867
RGBrgb(91, 24, 103)
HSLhsl(291, 62%, 25%)
HSVhsv(291, 77%, 40%)
CMYKcmyk(11.7%, 76.7%, 0%, 59.6%)
CIE-LABlab(23.19, 41.53, -31.41)
CIE-LCHlch(23.19, 52.07, 322.90°)
OKLaboklab(35.61% 0.1089 -0.0879)
OKLCHoklch(35.61% 0.14 321.1)
XYZxyz(7.0889, 3.8571, 13.2004)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1867 #246718
analogous
#331867 #5B1867 #67184C
triadic
#5B1867 #675B18 #18675B
tetradic
#5B1867 #673318 #246718 #184C67
square
#5B1867 #673318 #246718 #184C67
split-complementary
#5B1867 #4C6718 #186733
monochromatic
#160619 #2F0C35 #5B1867 #872499 #B32FCA

Accessibility & contrast

On white

11.86
#5B1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1867
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1867#FFFFFF#000000##FFFFFF
##5B18671.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#213A65
Tritanopia (blue-blind)
#5C273E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1867;
/* rgb */ color: rgb(91, 24, 103);
/* oklch */ color: oklch(35.6% 0.140 321.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c93',
    500: '#5b1867',
    950: '#000000',
  },
}
SCSS
$custom: #5b1867;
$custom-light: #8c5c93;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1867",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 290.886,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.13997,
    "h": 321.1
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#5B1867
secondary
#4C9D3E
accent
#E5435B
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1867

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

Preview Lab → · Contrast checker → · Palette generator →

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