#5D1786#5D1786

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

Color values

HEX#5D1786
RGBrgb(93, 23, 134)
HSLhsl(278, 71%, 31%)
HSVhsv(278, 83%, 53%)
CMYKcmyk(30.6%, 82.8%, 0%, 47.5%)
CIE-LABlab(25.75, 48.98, -47.08)
CIE-LCHlch(25.75, 67.94, 316.14°)
OKLaboklab(38.22% 0.1071 -0.1338)
OKLCHoklch(38.22% 0.171 308.7)
XYZxyz(9.1228, 4.6613, 22.9688)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1786 #408617
analogous
#251786 #5D1786 #861777
triadic
#5D1786 #865D17 #17865D
tetradic
#5D1786 #862517 #408617 #177786
square
#5D1786 #862517 #408617 #177786
split-complementary
#5D1786 #778617 #178625
monochromatic
#14051E #390E52 #5D1786 #8120BA #A13ADD

Accessibility & contrast

On white

10.87
#5D1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5D1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1786
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1786#FFFFFF#000000##FFFFFF
##5D17861.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003E84
Tritanopia (blue-blind)
#56344F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1786;
/* rgb */ color: rgb(93, 23, 134);
/* oklch */ color: oklch(38.2% 0.171 308.7);
Tailwind
colors: {
  custom: {
    50: '#905eaa',
    500: '#5d1786',
    950: '#000000',
  },
}
SCSS
$custom: #5d1786;
$custom-light: #905eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1786",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 277.838,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.17136,
    "h": 308.7
  },
  "luminance": 0.04661
}

Semantic roles & 50–950 ramp

primary
#5D1786
secondary
#6CBA3F
accent
#ED3A7C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1786

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

Preview Lab → · Contrast checker → · Palette generator →

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