#5B2087#5B2087

#5B2087 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.162 H 306.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#5B2087
RGBrgb(91, 32, 135)
HSLhsl(274, 62%, 33%)
HSVhsv(274, 76%, 53%)
CMYKcmyk(32.6%, 76.3%, 0%, 47.1%)
CIE-LABlab(26.75, 45.32, -46.08)
CIE-LCHlch(26.75, 64.63, 314.52°)
OKLaboklab(38.89% 0.0959 -0.131)
OKLCHoklch(38.89% 0.162 306.2)
XYZxyz(9.2031, 5.0065, 23.3985)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2087 #4C8720
analogous
#272087 #5B2087 #87207F
triadic
#5B2087 #875B20 #20875B
tetradic
#5B2087 #872720 #4C8720 #207F87
square
#5B2087 #872720 #4C8720 #207F87
split-complementary
#5B2087 #7F8720 #208727
monochromatic
#180924 #3A1456 #5B2087 #7C2CB8 #9B4DD5

Accessibility & contrast

On white

10.49
#5B2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5B2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2087
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2087#FFFFFF#000000##FFFFFF
##5B20871.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#533952
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2087;
/* rgb */ color: rgb(91, 32, 135);
/* oklch */ color: oklch(38.9% 0.162 306.2);
Tailwind
colors: {
  custom: {
    50: '#8e62ab',
    500: '#5b2087',
    950: '#000000',
  },
}
SCSS
$custom: #5b2087;
$custom-light: #8e62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2087",
  "rgb": {
    "r": 91,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 274.369,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.16235,
    "h": 306.2
  },
  "luminance": 0.05006
}

Semantic roles & 50–950 ramp

primary
#5B2087
secondary
#7AB84B
accent
#E54388
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B2087

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

Preview Lab → · Contrast checker → · Palette generator →

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