#5D1887#5D1887

#5D1887 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.171 H 308.2°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5D1887
RGBrgb(93, 24, 135)
HSLhsl(277, 70%, 31%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(31.1%, 82.2%, 0%, 47.1%)
CIE-LABlab(25.95, 48.86, -47.37)
CIE-LCHlch(25.95, 68.06, 315.88°)
OKLaboklab(38.39% 0.106 -0.1347)
OKLCHoklch(38.39% 0.171 308.2)
XYZxyz(9.2131, 4.7298, 23.3446)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1887 #428718
analogous
#251887 #5D1887 #871879
triadic
#5D1887 #875D18 #18875D
tetradic
#5D1887 #872518 #428718 #187987
square
#5D1887 #872518 #428718 #187987
split-complementary
#5D1887 #798718 #188725
monochromatic
#15061F #390F53 #5D1887 #8121BB #A03DDC

Accessibility & contrast

On white

10.79
#5D1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5D1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1887
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1887#FFFFFF#000000##FFFFFF
##5D18871.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#563550
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1887;
/* rgb */ color: rgb(93, 24, 135);
/* oklch */ color: oklch(38.4% 0.171 308.2);
Tailwind
colors: {
  custom: {
    50: '#905eab',
    500: '#5d1887',
    950: '#000000',
  },
}
SCSS
$custom: #5d1887;
$custom-light: #905eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1887",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 277.297,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.17138,
    "h": 308.2
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#5D1887
secondary
#6EBB40
accent
#ED3B7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1887

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

Preview Lab → · Contrast checker → · Palette generator →

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