#5B1863#5B1863

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

Color values

HEX#5B1863
RGBrgb(91, 24, 99)
HSLhsl(294, 61%, 24%)
HSVhsv(294, 76%, 39%)
CMYKcmyk(8.1%, 75.8%, 0%, 61.2%)
CIE-LABlab(22.93, 40.72, -29.22)
CIE-LCHlch(22.93, 50.12, 324.34°)
OKLaboklab(35.33% 0.1092 -0.0815)
OKLCHoklch(35.33% 0.136 323.3)
XYZxyz(6.8929, 3.7787, 12.1683)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1863 #206318
analogous
#361863 #5B1863 #631846
triadic
#5B1863 #635B18 #18635B
tetradic
#5B1863 #633618 #206318 #184663
square
#5B1863 #633618 #206318 #184663
split-complementary
#5B1863 #466318 #186336
monochromatic
#170619 #2E0C32 #5B1863 #882494 #B630C6

Accessibility & contrast

On white

11.96
#5B1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1863
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1863#FFFFFF#000000##FFFFFF
##5B18631.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003265
Deuteranopia (green-blind)
#243961
Tritanopia (blue-blind)
#5D253C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1863;
/* rgb */ color: rgb(91, 24, 99);
/* oklch */ color: oklch(35.3% 0.136 323.3);
Tailwind
colors: {
  custom: {
    50: '#8c5c90',
    500: '#5b1863',
    950: '#000000',
  },
}
SCSS
$custom: #5b1863;
$custom-light: #8c5c90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1863",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 293.6,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35333,
    "c": 0.13623,
    "h": 323.3
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#5B1863
secondary
#47993E
accent
#E44455
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1863

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

Preview Lab → · Contrast checker → · Palette generator →

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