#5D209B#5D209B

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

Color values

HEX#5D209B
RGBrgb(93, 32, 155)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(40%, 79.4%, 0%, 39.2%)
CIE-LABlab(28.71, 50.54, -55.23)
CIE-LCHlch(28.71, 74.86, 312.46°)
OKLaboklab(40.85% 0.0939 -0.1578)
OKLCHoklch(40.85% 0.184 300.7)
XYZxyz(10.9456, 5.7266, 31.5327)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D209B #5E9B20
analogous
#20219B #5D209B #9B209B
triadic
#5D209B #9B5D20 #209B5D
tetradic
#5D209B #9B2021 #5E9B20 #209B9B
square
#5D209B #9B2021 #5E9B20 #209B9B
split-complementary
#5D209B #9B9B20 #219B20
monochromatic
#200B36 #3F1668 #5D209B #7B2ACE #9A59DD

Accessibility & contrast

On white

9.79
#5D209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5D209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D209B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D209B#FFFFFF#000000##FFFFFF
##5D209B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#4F415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d209b;
/* rgb */ color: rgb(93, 32, 155);
/* oklch */ color: oklch(40.8% 0.184 300.7);
Tailwind
colors: {
  custom: {
    50: '#9163b9',
    500: '#5d209b',
    950: '#000000',
  },
}
SCSS
$custom: #5d209b;
$custom-light: #9163b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d209b",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 269.756,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40846,
    "c": 0.18364,
    "h": 300.7
  },
  "luminance": 0.05727
}

Semantic roles & 50–950 ramp

primary
#5D209B
secondary
#8CC156
accent
#E93F95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5D209B

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

Preview Lab → · Contrast checker → · Palette generator →

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