#5B1689#5B1689

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

Color values

HEX#5B1689
RGBrgb(91, 22, 137)
HSLhsl(276, 72%, 31%)
HSVhsv(276, 84%, 54%)
CMYKcmyk(33.6%, 83.9%, 0%, 46.3%)
CIE-LABlab(25.58, 49.66, -49.25)
CIE-LCHlch(25.58, 69.94, 315.24°)
OKLaboklab(38.12% 0.1041 -0.1403)
OKLCHoklch(38.12% 0.175 306.6)
XYZxyz(9.1157, 4.6042, 24.0705)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1689 #448916
analogous
#211689 #5B1689 #89167D
triadic
#5B1689 #895B16 #16895B
tetradic
#5B1689 #892116 #448916 #167D89
square
#5B1689 #892116 #448916 #167D89
split-complementary
#5B1689 #7D8916 #168921
monochromatic
#150520 #380E54 #5B1689 #7E1EBE #9D3ADF

Accessibility & contrast

On white

10.93
#5B1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1689
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1689#FFFFFF#000000##FFFFFF
##5B16891.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1689;
/* rgb */ color: rgb(91, 22, 137);
/* oklch */ color: oklch(38.1% 0.175 306.6);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5b1689',
    950: '#000000',
  },
}
SCSS
$custom: #5b1689;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1689",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 276,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38116,
    "c": 0.17463,
    "h": 306.6
  },
  "luminance": 0.04604
}

Semantic roles & 50–950 ramp

primary
#5B1689
secondary
#71BD3E
accent
#EF3982
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1689

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

Preview Lab → · Contrast checker → · Palette generator →

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