#5D2199#5D2199

#5D2199 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.181 H 301.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5D2199
RGBrgb(93, 33, 153)
HSLhsl(270, 65%, 36%)
HSVhsv(270, 78%, 60%)
CMYKcmyk(39.2%, 78.4%, 0%, 40%)
CIE-LABlab(28.68, 49.63, -54.06)
CIE-LCHlch(28.68, 73.39, 312.56°)
OKLaboklab(40.77% 0.0936 -0.1544)
OKLCHoklch(40.77% 0.181 301.2)
XYZxyz(10.8064, 5.7147, 30.6645)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2199 #5D9921
analogous
#212199 #5D2199 #992199
triadic
#5D2199 #995D21 #21995D
tetradic
#5D2199 #992121 #5D9921 #219999
square
#5D2199 #992121 #5D9921 #219999
split-complementary
#5D2199 #999921 #219921
monochromatic
#200B34 #3E1667 #5D2199 #7C2CCB #9A59DB

Accessibility & contrast

On white

9.80
#5D2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5D2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2199
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2199#FFFFFF#000000##FFFFFF
##5D21991.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#50415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d2199;
/* rgb */ color: rgb(93, 33, 153);
/* oklch */ color: oklch(40.8% 0.181 301.2);
Tailwind
colors: {
  custom: {
    50: '#9163b8',
    500: '#5d2199',
    950: '#000000',
  },
}
SCSS
$custom: #5d2199;
$custom-light: #9163b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2199",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 270,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4077,
    "c": 0.18054,
    "h": 301.2
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#5D2199
secondary
#8BBF56
accent
#E84094
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5D2199

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

Preview Lab → · Contrast checker → · Palette generator →

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