#5B1779#5B1779

#5B1779 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.158 H 312.7°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5B1779
RGBrgb(91, 23, 121)
HSLhsl(282, 68%, 28%)
HSVhsv(282, 81%, 47%)
CMYKcmyk(24.8%, 81%, 0%, 52.5%)
CIE-LABlab(24.38, 45.73, -41.10)
CIE-LCHlch(24.38, 61.49, 318.05°)
OKLaboklab(36.87% 0.1073 -0.1163)
OKLCHoklch(36.87% 0.158 312.7)
XYZxyz(8.0713, 4.2177, 18.4744)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1779 #357917
analogous
#2A1779 #5B1779 #791766
triadic
#5B1779 #795B17 #17795B
tetradic
#5B1779 #792A17 #357917 #176679
square
#5B1779 #792A17 #357917 #176679
split-complementary
#5B1779 #667917 #17792A
monochromatic
#13051A #340D46 #5B1779 #8221AC #A532D8

Accessibility & contrast

On white

11.39
#5B1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1779
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1779#FFFFFF#000000##FFFFFF
##5B17791.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#073B77
Tritanopia (blue-blind)
#582F48
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b1779;
/* rgb */ color: rgb(91, 23, 121);
/* oklch */ color: oklch(36.9% 0.158 312.7);
Tailwind
colors: {
  custom: {
    50: '#8d5da0',
    500: '#5b1779',
    950: '#000000',
  },
}
SCSS
$custom: #5b1779;
$custom-light: #8d5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1779",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 281.633,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36867,
    "c": 0.15826,
    "h": 312.7
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#5B1779
secondary
#60AE3E
accent
#EB3D72
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5B1779

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

Preview Lab → · Contrast checker → · Palette generator →

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