#5D1886#5D1886

#5D1886 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.170 H 308.6°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5D1886
RGBrgb(93, 24, 134)
HSLhsl(278, 70%, 31%)
HSVhsv(278, 82%, 53%)
CMYKcmyk(30.6%, 82.1%, 0%, 47.5%)
CIE-LABlab(25.87, 48.63, -46.88)
CIE-LCHlch(25.87, 67.55, 316.05°)
OKLaboklab(38.3% 0.1063 -0.1332)
OKLCHoklch(38.3% 0.17 308.6)
XYZxyz(9.1430, 4.7018, 22.9755)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1886 #418618
analogous
#261886 #5D1886 #861878
triadic
#5D1886 #865D18 #18865D
tetradic
#5D1886 #862618 #418618 #187886
square
#5D1886 #862618 #418618 #187886
split-complementary
#5D1886 #788618 #188626
monochromatic
#15051E #390F52 #5D1886 #8121BA #A13CDC

Accessibility & contrast

On white

10.82
#5D1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5D1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1886
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1886#FFFFFF#000000##FFFFFF
##5D18861.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1886;
/* rgb */ color: rgb(93, 24, 134);
/* oklch */ color: oklch(38.3% 0.170 308.6);
Tailwind
colors: {
  custom: {
    50: '#905eaa',
    500: '#5d1886',
    950: '#000000',
  },
}
SCSS
$custom: #5d1886;
$custom-light: #905eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1886",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 277.636,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38304,
    "c": 0.17042,
    "h": 308.6
  },
  "luminance": 0.04702
}

Semantic roles & 50–950 ramp

primary
#5D1886
secondary
#6DBA40
accent
#EC3B7D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1886

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

Preview Lab → · Contrast checker → · Palette generator →

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