#5B1487#5B1487

#5B1487 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.174 H 307.5°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#5B1487
RGBrgb(91, 20, 135)
HSLhsl(277, 74%, 30%)
HSVhsv(277, 85%, 53%)
CMYKcmyk(32.6%, 85.2%, 0%, 47.1%)
CIE-LABlab(25.18, 49.86, -48.64)
CIE-LCHlch(25.18, 69.66, 315.71°)
OKLaboklab(37.79% 0.1061 -0.1385)
OKLCHoklch(37.79% 0.174 307.5)
XYZxyz(8.9368, 4.4739, 23.3097)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1487 #408714
analogous
#211487 #5B1487 #87147A
triadic
#5B1487 #875B14 #14875B
tetradic
#5B1487 #872114 #408714 #147A87
square
#5B1487 #872114 #408714 #147A87
split-complementary
#5B1487 #7A8714 #148721
monochromatic
#13041C #370C52 #5B1487 #7F1CBC #9F34E1

Accessibility & contrast

On white

11.08
#5B1487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1487
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1487#FFFFFF#000000##FFFFFF
##5B14871.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#53344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1487;
/* rgb */ color: rgb(91, 20, 135);
/* oklch */ color: oklch(37.8% 0.174 307.5);
Tailwind
colors: {
  custom: {
    50: '#8f5dab',
    500: '#5b1487',
    950: '#000000',
  },
}
SCSS
$custom: #5b1487;
$custom-light: #8f5dab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1487",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 135
  },
  "hsl": {
    "h": 277.043,
    "s": 74.194,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37787,
    "c": 0.17444,
    "h": 307.5
  },
  "luminance": 0.04474
}

Semantic roles & 50–950 ramp

primary
#5B1487
secondary
#6CBB3B
accent
#F1377E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1487

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

Preview Lab → · Contrast checker → · Palette generator →

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