#5B1769#5B1769

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

Color values

HEX#5B1769
RGBrgb(91, 23, 105)
HSLhsl(290, 64%, 25%)
HSVhsv(290, 78%, 41%)
CMYKcmyk(13.3%, 78.1%, 0%, 58.8%)
CIE-LABlab(23.19, 42.33, -32.71)
CIE-LCHlch(23.19, 53.50, 322.30°)
OKLaboklab(35.65% 0.1098 -0.0917)
OKLCHoklch(35.65% 0.143 320.1)
XYZxyz(7.1703, 3.8572, 13.7287)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1769 #256917
analogous
#321769 #5B1769 #69174E
triadic
#5B1769 #695B17 #17695B
tetradic
#5B1769 #693217 #256917 #174E69
square
#5B1769 #693217 #256917 #174E69
split-complementary
#5B1769 #4E6917 #176932
monochromatic
#160519 #2F0C37 #5B1769 #87229B #B22DCD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B1769#FFFFFF#000000##FFFFFF
##5B17691.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)
#00336B
Deuteranopia (green-blind)
#1F3A67
Tritanopia (blue-blind)
#5B273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5b1769;
/* rgb */ color: rgb(91, 23, 105);
/* oklch */ color: oklch(35.7% 0.143 320.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5b1769',
    950: '#000000',
  },
}
SCSS
$custom: #5b1769;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1769",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 289.756,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35654,
    "c": 0.14306,
    "h": 320.1
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#5B1769
secondary
#4D9F3D
accent
#E7415D
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5B1769

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

Preview Lab → · Contrast checker → · Palette generator →

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