#5D1585#5D1585

#5D1585 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.172 H 309.2°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5D1585
RGBrgb(93, 21, 133)
HSLhsl(279, 73%, 30%)
HSVhsv(279, 84%, 52%)
CMYKcmyk(30.1%, 84.2%, 0%, 47.8%)
CIE-LABlab(25.43, 49.43, -46.96)
CIE-LCHlch(25.43, 68.18, 316.47°)
OKLaboklab(37.97% 0.1089 -0.1335)
OKLCHoklch(37.97% 0.172 309.2)
XYZxyz(9.0151, 4.5571, 22.5905)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1585 #3D8515
analogous
#251585 #5D1585 #851575
triadic
#5D1585 #855D15 #15855D
tetradic
#5D1585 #852515 #3D8515 #157585
square
#5D1585 #852515 #3D8515 #157585
split-complementary
#5D1585 #758515 #158525
monochromatic
#13041B #380D50 #5D1585 #821DBA #A235DF

Accessibility & contrast

On white

10.99
#5D1585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1585
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1585#FFFFFF#000000##FFFFFF
##5D15851.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#57334E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1585;
/* rgb */ color: rgb(93, 21, 133);
/* oklch */ color: oklch(38.0% 0.172 309.2);
Tailwind
colors: {
  custom: {
    50: '#905da9',
    500: '#5d1585',
    950: '#000000',
  },
}
SCSS
$custom: #5d1585;
$custom-light: #905da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1585",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 133
  },
  "hsl": {
    "h": 278.571,
    "s": 72.727,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37975,
    "c": 0.17223,
    "h": 309.2
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#5D1585
secondary
#69B93C
accent
#EF387A
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1585

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

Preview Lab → · Contrast checker → · Palette generator →

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