#5D1588#5D1588

#5D1588 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.175 H 308.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5D1588
RGBrgb(93, 21, 136)
HSLhsl(278, 73%, 31%)
HSVhsv(278, 85%, 53%)
CMYKcmyk(31.6%, 84.6%, 0%, 46.7%)
CIE-LABlab(25.69, 50.10, -48.43)
CIE-LCHlch(25.69, 69.68, 315.97°)
OKLaboklab(38.23% 0.108 -0.1378)
OKLCHoklch(38.23% 0.175 308.1)
XYZxyz(9.2254, 4.6412, 23.6976)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1588 #408815
analogous
#231588 #5D1588 #881579
triadic
#5D1588 #885D15 #15885D
tetradic
#5D1588 #882315 #408815 #157988
square
#5D1588 #882315 #408815 #157988
split-complementary
#5D1588 #798815 #158823
monochromatic
#14051E #390D53 #5D1588 #811DBD #A137E0

Accessibility & contrast

On white

10.89
#5D1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1588
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1588#FFFFFF#000000##FFFFFF
##5D15881.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#563450
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1588;
/* rgb */ color: rgb(93, 21, 136);
/* oklch */ color: oklch(38.2% 0.175 308.1);
Tailwind
colors: {
  custom: {
    50: '#905dac',
    500: '#5d1588',
    950: '#000000',
  },
}
SCSS
$custom: #5d1588;
$custom-light: #905dac;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1588",
  "rgb": {
    "r": 93,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 277.565,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.17506,
    "h": 308.1
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#5D1588
secondary
#6CBC3D
accent
#F0387D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1588

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

Preview Lab → · Contrast checker → · Palette generator →

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