#5D1986#5D1986

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

Color values

HEX#5D1986
RGBrgb(93, 25, 134)
HSLhsl(277, 69%, 31%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(30.6%, 81.3%, 0%, 47.5%)
CIE-LABlab(25.99, 48.27, -46.68)
CIE-LCHlch(25.99, 67.15, 315.96°)
OKLaboklab(38.39% 0.1054 -0.1326)
OKLCHoklch(38.39% 0.169 308.5)
XYZxyz(9.1640, 4.7438, 22.9825)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1986 #428619
analogous
#261986 #5D1986 #861978
triadic
#5D1986 #865D19 #19865D
tetradic
#5D1986 #862619 #428619 #197886
square
#5D1986 #862619 #428619 #197886
split-complementary
#5D1986 #788619 #198626
monochromatic
#15061F #390F52 #5D1986 #8123BA #A03EDB

Accessibility & contrast

On white

10.78
#5D1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1986
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1986#FFFFFF#000000##FFFFFF
##5D19861.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#563550
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1986;
/* rgb */ color: rgb(93, 25, 134);
/* oklch */ color: oklch(38.4% 0.169 308.5);
Tailwind
colors: {
  custom: {
    50: '#905faa',
    500: '#5d1986',
    950: '#000000',
  },
}
SCSS
$custom: #5d1986;
$custom-light: #905faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1986",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 277.431,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.16944,
    "h": 308.5
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#5D1986
secondary
#6EBA41
accent
#EB3C7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1986

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

Preview Lab → · Contrast checker → · Palette generator →

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