#5D1A86#5D1A86

#5D1A86 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.168 H 308.4°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5D1A86
RGBrgb(93, 26, 134)
HSLhsl(277, 68%, 31%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(30.6%, 80.6%, 0%, 47.5%)
CIE-LABlab(26.12, 47.90, -46.47)
CIE-LCHlch(26.12, 66.74, 315.87°)
OKLaboklab(38.48% 0.1046 -0.132)
OKLCHoklch(38.48% 0.168 308.4)
XYZxyz(9.1858, 4.7873, 22.9898)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A86 #43861A
analogous
#271A86 #5D1A86 #861A79
triadic
#5D1A86 #865D1A #1A865D
tetradic
#5D1A86 #86271A #43861A #1A7986
square
#5D1A86 #86271A #43861A #1A7986
split-complementary
#5D1A86 #79861A #1A8627
monochromatic
#16061F #391053 #5D1A86 #8124B9 #A040DA

Accessibility & contrast

On white

10.73
#5D1A86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5D1A86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1A86
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A86#FFFFFF#000000##FFFFFF
##5D1A861.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.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: #5d1a86;
/* rgb */ color: rgb(93, 26, 134);
/* oklch */ color: oklch(38.5% 0.168 308.4);
Tailwind
colors: {
  custom: {
    50: '#905faa',
    500: '#5d1a86',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a86;
$custom-light: #905faa;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a86",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 134
  },
  "hsl": {
    "h": 277.222,
    "s": 67.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38481,
    "c": 0.16844,
    "h": 308.4
  },
  "luminance": 0.04787
}

Semantic roles & 50–950 ramp

primary
#5D1A86
secondary
#70B942
accent
#EA3D7F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A86

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

Preview Lab → · Contrast checker → · Palette generator →

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