#5D209C#5D209C

#5D209C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.185 H 300.5°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#5D209C
RGBrgb(93, 32, 156)
HSLhsl(270, 66%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(40.4%, 79.5%, 0%, 38.8%)
CIE-LABlab(28.80, 50.78, -55.70)
CIE-LCHlch(28.80, 75.37, 312.36°)
OKLaboklab(40.93% 0.0936 -0.1592)
OKLCHoklch(40.93% 0.185 300.5)
XYZxyz(11.0300, 5.7604, 31.9768)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D209C #5F9C20
analogous
#20219C #5D209C #9B209C
triadic
#5D209C #9C5D20 #209C5D
tetradic
#5D209C #9C2021 #5F9C20 #209C9B
square
#5D209C #9C2021 #5F9C20 #209C9B
split-complementary
#5D209C #9C9B20 #219C20
monochromatic
#200B36 #3F1669 #5D209C #7B2ACF #9A59DD

Accessibility & contrast

On white

9.76
#5D209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D209C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D209C#FFFFFF#000000##FFFFFF
##5D209C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#4E425E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5d209c;
/* rgb */ color: rgb(93, 32, 156);
/* oklch */ color: oklch(40.9% 0.185 300.5);
Tailwind
colors: {
  custom: {
    50: '#9163ba',
    500: '#5d209c',
    950: '#000000',
  },
}
SCSS
$custom: #5d209c;
$custom-light: #9163ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5d209c",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 269.516,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40934,
    "c": 0.18467,
    "h": 300.5
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#5D209C
secondary
#8DC157
accent
#E93F95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D209C

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

Preview Lab → · Contrast checker → · Palette generator →

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