#5B1788#5B1788

#5B1788 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.173 H 306.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5B1788
RGBrgb(91, 23, 136)
HSLhsl(276, 71%, 31%)
HSVhsv(276, 83%, 53%)
CMYKcmyk(33.1%, 83.1%, 0%, 46.7%)
CIE-LABlab(25.61, 49.09, -48.57)
CIE-LCHlch(25.61, 69.06, 315.30°)
OKLaboklab(38.11% 0.1036 -0.1383)
OKLCHoklch(38.11% 0.173 306.8)
XYZxyz(9.0637, 4.6146, 23.7010)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1788 #448817
analogous
#221788 #5B1788 #88177C
triadic
#5B1788 #885B17 #17885B
tetradic
#5B1788 #882217 #448817 #177C88
square
#5B1788 #882217 #448817 #177C88
split-complementary
#5B1788 #7C8817 #178822
monochromatic
#15051F #380E54 #5B1788 #7E20BC #9D3BDE

Accessibility & contrast

On white

10.92
#5B1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1788
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1788#FFFFFF#000000##FFFFFF
##5B17881.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#533550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1788;
/* rgb */ color: rgb(91, 23, 136);
/* oklch */ color: oklch(38.1% 0.173 306.8);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5b1788',
    950: '#000000',
  },
}
SCSS
$custom: #5b1788;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1788",
  "rgb": {
    "r": 91,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 276.106,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38111,
    "c": 0.17276,
    "h": 306.8
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#5B1788
secondary
#71BC3F
accent
#EE3A82
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1788

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

Preview Lab → · Contrast checker → · Palette generator →

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