#5B1489#5B1489

#5B1489 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.176 H 306.7°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5B1489
RGBrgb(91, 20, 137)
HSLhsl(276, 75%, 31%)
HSVhsv(276, 85%, 54%)
CMYKcmyk(33.6%, 85.4%, 0%, 46.3%)
CIE-LABlab(25.35, 50.31, -49.61)
CIE-LCHlch(25.35, 70.66, 315.40°)
OKLaboklab(37.96% 0.1055 -0.1413)
OKLCHoklch(37.96% 0.176 306.7)
XYZxyz(9.0789, 4.5307, 24.0583)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1489 #428914
analogous
#201489 #5B1489 #89147C
triadic
#5B1489 #895B14 #14895B
tetradic
#5B1489 #892014 #428914 #147C89
square
#5B1489 #892014 #428914 #147C89
split-complementary
#5B1489 #7C8914 #148920
monochromatic
#14041E #380C54 #5B1489 #7E1CBE #9E36E2

Accessibility & contrast

On white

11.02
#5B1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1489
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1489#FFFFFF#000000##FFFFFF
##5B14891.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003C87
Tritanopia (blue-blind)
#533551
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1489;
/* rgb */ color: rgb(91, 20, 137);
/* oklch */ color: oklch(38.0% 0.176 306.7);
Tailwind
colors: {
  custom: {
    50: '#8f5dac',
    500: '#5b1489',
    950: '#000000',
  },
}
SCSS
$custom: #5b1489;
$custom-light: #8f5dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1489",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 276.41,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37962,
    "c": 0.17634,
    "h": 306.7
  },
  "luminance": 0.04531
}

Semantic roles & 50–950 ramp

primary
#5B1489
secondary
#6FBD3C
accent
#F13780
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1489

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

Preview Lab → · Contrast checker → · Palette generator →

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