#5D1A87#5D1A87

#5D1A87 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.169 H 308.0°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#5D1A87
RGBrgb(93, 26, 135)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(31.1%, 80.7%, 0%, 47.1%)
CIE-LABlab(26.20, 48.13, -46.96)
CIE-LCHlch(26.20, 67.25, 315.70°)
OKLaboklab(38.56% 0.1043 -0.1335)
OKLCHoklch(38.56% 0.169 308)
XYZxyz(9.2558, 4.8154, 23.3588)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1A87 #44871A
analogous
#271A87 #5D1A87 #871A7B
triadic
#5D1A87 #875D1A #1A875D
tetradic
#5D1A87 #87271A #44871A #1A7B87
square
#5D1A87 #87271A #44871A #1A7B87
split-complementary
#5D1A87 #7B871A #1A8727
monochromatic
#160620 #3A1054 #5D1A87 #8024BA #9F41DA

Accessibility & contrast

On white

10.70
#5D1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1A87
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1A87#FFFFFF#000000##FFFFFF
##5D1A871.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#563651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d1a87;
/* rgb */ color: rgb(93, 26, 135);
/* oklch */ color: oklch(38.6% 0.169 308.0);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5d1a87',
    950: '#000000',
  },
}
SCSS
$custom: #5d1a87;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1a87",
  "rgb": {
    "r": 93,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 276.881,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38564,
    "c": 0.16943,
    "h": 308
  },
  "luminance": 0.04815
}

Semantic roles & 50–950 ramp

primary
#5D1A87
secondary
#71BA42
accent
#EB3D80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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