#5D1988#5D1988

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

Color values

HEX#5D1988
RGBrgb(93, 25, 136)
HSLhsl(277, 69%, 32%)
HSVhsv(277, 82%, 53%)
CMYKcmyk(31.6%, 81.6%, 0%, 46.7%)
CIE-LABlab(26.16, 48.73, -47.66)
CIE-LCHlch(26.16, 68.16, 315.63°)
OKLaboklab(38.56% 0.1049 -0.1355)
OKLCHoklch(38.56% 0.171 307.7)
XYZxyz(9.3048, 4.8001, 23.7241)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1988 #448819
analogous
#261988 #5D1988 #88197C
triadic
#5D1988 #885D19 #19885D
tetradic
#5D1988 #882619 #448819 #197C88
square
#5D1988 #882619 #448819 #197C88
split-complementary
#5D1988 #7C8819 #198826
monochromatic
#160621 #3A0F54 #5D1988 #8023BC #9F40DC

Accessibility & contrast

On white

10.71
#5D1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1988
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1988#FFFFFF#000000##FFFFFF
##5D19881.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1988;
/* rgb */ color: rgb(93, 25, 136);
/* oklch */ color: oklch(38.6% 0.171 307.7);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5d1988',
    950: '#000000',
  },
}
SCSS
$custom: #5d1988;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1988",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 276.757,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38558,
    "c": 0.1714,
    "h": 307.7
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

primary
#5D1988
secondary
#71BB41
accent
#EC3C80
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D1988

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

Preview Lab → · Contrast checker → · Palette generator →

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