#5B1789#5B1789

#5B1789 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.174 H 306.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5B1789
RGBrgb(91, 23, 137)
HSLhsl(276, 71%, 31%)
HSVhsv(276, 83%, 54%)
CMYKcmyk(33.6%, 83.2%, 0%, 46.3%)
CIE-LABlab(25.69, 49.32, -49.06)
CIE-LCHlch(25.69, 69.56, 315.15°)
OKLaboklab(38.2% 0.1033 -0.1397)
OKLCHoklch(38.2% 0.174 306.5)
XYZxyz(9.1351, 4.6432, 24.0770)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1789 #458917
analogous
#221789 #5B1789 #89177E
triadic
#5B1789 #895B17 #17895B
tetradic
#5B1789 #892217 #458917 #177E89
square
#5B1789 #892217 #458917 #177E89
split-complementary
#5B1789 #7E8917 #178922
monochromatic
#150520 #380E55 #5B1789 #7E20BD #9D3CDE

Accessibility & contrast

On white

10.89
#5B1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1789
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1789#FFFFFF#000000##FFFFFF
##5B17891.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#533651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1789;
/* rgb */ color: rgb(91, 23, 137);
/* oklch */ color: oklch(38.2% 0.174 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5b1789',
    950: '#000000',
  },
}
SCSS
$custom: #5b1789;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1789",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 275.789,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38197,
    "c": 0.17374,
    "h": 306.5
  },
  "luminance": 0.04643
}

Semantic roles & 50–950 ramp

primary
#5B1789
secondary
#72BD3F
accent
#EE3A83
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1789

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

Preview Lab → · Contrast checker → · Palette generator →

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