#5D208E#5D208E

#5D208E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.170 H 304.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5D208E
RGBrgb(93, 32, 142)
HSLhsl(273, 63%, 34%)
HSVhsv(273, 77%, 56%)
CMYKcmyk(34.5%, 77.5%, 0%, 44.3%)
CIE-LABlab(27.61, 47.38, -49.03)
CIE-LCHlch(27.61, 68.18, 314.02°)
OKLaboklab(39.73% 0.0973 -0.1396)
OKLCHoklch(39.73% 0.17 304.9)
XYZxyz(9.9121, 5.3132, 26.0893)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D208E #518E20
analogous
#26208E #5D208E #8E2088
triadic
#5D208E #8E5D20 #208E5D
tetradic
#5D208E #8E2620 #518E20 #20888E
square
#5D208E #8E2620 #518E20 #20888E
split-complementary
#5D208E #888E20 #208E26
monochromatic
#1C092A #3C155C #5D208E #7E2BC0 #9C51D8

Accessibility & contrast

On white

10.18
#5D208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5D208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D208E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D208E#FFFFFF#000000##FFFFFF
##5D208E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#543C56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d208e;
/* rgb */ color: rgb(93, 32, 142);
/* oklch */ color: oklch(39.7% 0.170 304.9);
Tailwind
colors: {
  custom: {
    50: '#9062b0',
    500: '#5d208e',
    950: '#000000',
  },
}
SCSS
$custom: #5d208e;
$custom-light: #9062b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d208e",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 273.273,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39731,
    "c": 0.17015,
    "h": 304.9
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#5D208E
secondary
#7FBB4F
accent
#E6428B
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5D208E

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

Preview Lab → · Contrast checker → · Palette generator →

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