#5D2087#5D2087

#5D2087 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.163 H 307.3°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5D2087
RGBrgb(93, 32, 135)
HSLhsl(276, 62%, 33%)
HSVhsv(276, 76%, 53%)
CMYKcmyk(31.1%, 76.3%, 0%, 47.1%)
CIE-LABlab(27.04, 45.71, -45.60)
CIE-LCHlch(27.04, 64.56, 315.07°)
OKLaboklab(39.16% 0.0988 -0.1295)
OKLCHoklch(39.16% 0.163 307.3)
XYZxyz(9.4030, 5.1096, 23.4079)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2087 #4A8720
analogous
#292087 #5D2087 #87207D
triadic
#5D2087 #875D20 #20875D
tetradic
#5D2087 #872920 #4A8720 #207D87
square
#5D2087 #872920 #4A8720 #207D87
split-complementary
#5D2087 #7D8720 #208729
monochromatic
#190924 #3B1456 #5D2087 #7F2CB8 #9D4DD5

Accessibility & contrast

On white

10.39
#5D2087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5D2087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2087
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2087#FFFFFF#000000##FFFFFF
##5D20871.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#563952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5d2087;
/* rgb */ color: rgb(93, 32, 135);
/* oklch */ color: oklch(39.2% 0.163 307.3);
Tailwind
colors: {
  custom: {
    50: '#8f62ab',
    500: '#5d2087',
    950: '#000000',
  },
}
SCSS
$custom: #5d2087;
$custom-light: #8f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2087",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 275.534,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39156,
    "c": 0.16289,
    "h": 307.3
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#5D2087
secondary
#77B84B
accent
#E54385
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D2087

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

Preview Lab → · Contrast checker → · Palette generator →

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