#5B1778#5B1778

#5B1778 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.157 H 313.1°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5B1778
RGBrgb(91, 23, 120)
HSLhsl(282, 68%, 28%)
HSVhsv(282, 81%, 47%)
CMYKcmyk(24.2%, 80.8%, 0%, 52.9%)
CIE-LABlab(24.30, 45.51, -40.59)
CIE-LCHlch(24.30, 60.98, 318.27°)
OKLaboklab(36.79% 0.1075 -0.1148)
OKLCHoklch(36.79% 0.157 313.1)
XYZxyz(8.0103, 4.1933, 18.1531)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1778 #347817
analogous
#2A1778 #5B1778 #781764
triadic
#5B1778 #785B17 #17785B
tetradic
#5B1778 #782A17 #347817 #176478
square
#5B1778 #782A17 #347817 #176478
split-complementary
#5B1778 #647817 #17782A
monochromatic
#13051A #340D45 #5B1778 #8221AB #A632D8

Accessibility & contrast

On white

11.42
#5B1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1778
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1778#FFFFFF#000000##FFFFFF
##5B17781.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#0A3B76
Tritanopia (blue-blind)
#582E47
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1778;
/* rgb */ color: rgb(91, 23, 120);
/* oklch */ color: oklch(36.8% 0.157 313.1);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5b1778',
    950: '#000000',
  },
}
SCSS
$custom: #5b1778;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1778",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 282.062,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36788,
    "c": 0.1573,
    "h": 313.1
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#5B1778
secondary
#5FAD3E
accent
#EB3D71
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1778

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

Preview Lab → · Contrast checker → · Palette generator →

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