#5D208C#5D208C

#5D208C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.6% C 0.168 H 305.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#5D208C
RGBrgb(93, 32, 140)
HSLhsl(274, 63%, 34%)
HSVhsv(274, 77%, 55%)
CMYKcmyk(33.6%, 77.1%, 0%, 45.1%)
CIE-LABlab(27.45, 46.90, -48.06)
CIE-LCHlch(27.45, 67.15, 314.30°)
OKLaboklab(39.56% 0.0977 -0.1368)
OKLCHoklch(39.56% 0.168 305.5)
XYZxyz(9.7633, 5.2537, 25.3056)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D208C #4F8C20
analogous
#27208C #5D208C #8C2085
triadic
#5D208C #8C5D20 #208C5D
tetradic
#5D208C #8C2720 #4F8C20 #20858C
square
#5D208C #8C2720 #4F8C20 #20858C
split-complementary
#5D208C #858C20 #208C27
monochromatic
#1B0928 #3C155A #5D208C #7E2BBE #9C50D7

Accessibility & contrast

On white

10.24
#5D208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5D208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D208C
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D208C#FFFFFF#000000##FFFFFF
##5D208C1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#543B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d208c;
/* rgb */ color: rgb(93, 32, 140);
/* oklch */ color: oklch(39.6% 0.168 305.5);
Tailwind
colors: {
  custom: {
    50: '#9062ae',
    500: '#5d208c',
    950: '#000000',
  },
}
SCSS
$custom: #5d208c;
$custom-light: #9062ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d208c",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 273.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39564,
    "c": 0.16808,
    "h": 305.5
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#5D208C
secondary
#7DBA4E
accent
#E64289
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D208C

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

Preview Lab → · Contrast checker → · Palette generator →

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