#5D2987#5D2987

#5D2987 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.2% C 0.151 H 306.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5D2987
RGBrgb(93, 41, 135)
HSLhsl(273, 53%, 35%)
HSVhsv(273, 70%, 53%)
CMYKcmyk(31.1%, 69.6%, 0%, 47.1%)
CIE-LABlab(28.54, 41.49, -43.17)
CIE-LCHlch(28.54, 59.88, 313.87°)
OKLaboklab(40.22% 0.0891 -0.1224)
OKLCHoklch(40.22% 0.151 306)
XYZxyz(9.6794, 5.6624, 23.5000)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2987 #538729
analogous
#2E2987 #5D2987 #872982
triadic
#5D2987 #875D29 #29875D
tetradic
#5D2987 #872E29 #538729 #298287
square
#5D2987 #872E29 #538729 #298287
split-complementary
#5D2987 #828729 #29872E
monochromatic
#1C0C29 #3D1B58 #5D2987 #7D37B6 #9B5DCE

Accessibility & contrast

On white

9.85
#5D2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5D2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2987
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2987#FFFFFF#000000##FFFFFF
##5D29871.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#0D4485
Tritanopia (blue-blind)
#563E54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5d2987;
/* rgb */ color: rgb(93, 41, 135);
/* oklch */ color: oklch(40.2% 0.151 306.0);
Tailwind
colors: {
  custom: {
    50: '#8f67ab',
    500: '#5d2987',
    950: '#000000',
  },
}
SCSS
$custom: #5d2987;
$custom-light: #8f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2987",
  "rgb": {
    "r": 93,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 273.191,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40223,
    "c": 0.1514,
    "h": 306
  },
  "luminance": 0.05662
}

Semantic roles & 50–950 ramp

primary
#5D2987
secondary
#81B359
accent
#DD4B8C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5D2987

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

Preview Lab → · Contrast checker → · Palette generator →

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