#5D208B#5D208B

#5D208B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.167 H 305.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#5D208B
RGBrgb(93, 32, 139)
HSLhsl(274, 63%, 34%)
HSVhsv(274, 77%, 55%)
CMYKcmyk(33.1%, 77%, 0%, 45.5%)
CIE-LABlab(27.36, 46.66, -47.57)
CIE-LCHlch(27.36, 66.63, 314.45°)
OKLaboklab(39.48% 0.0979 -0.1353)
OKLCHoklch(39.48% 0.167 305.9)
XYZxyz(9.6899, 5.2243, 24.9190)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D208B #4E8B20
analogous
#28208B #5D208B #8B2083
triadic
#5D208B #8B5D20 #208B5D
tetradic
#5D208B #8B2820 #4E8B20 #20838B
square
#5D208B #8B2820 #4E8B20 #20838B
split-complementary
#5D208B #838B20 #208B28
monochromatic
#1A0928 #3C1559 #5D208B #7E2BBD #9C4FD6

Accessibility & contrast

On white

10.27
#5D208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5D208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D208B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D208B#FFFFFF#000000##FFFFFF
##5D208B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#553A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5d208b;
/* rgb */ color: rgb(93, 32, 139);
/* oklch */ color: oklch(39.5% 0.167 305.9);
Tailwind
colors: {
  custom: {
    50: '#9062ae',
    500: '#5d208b',
    950: '#000000',
  },
}
SCSS
$custom: #5d208b;
$custom-light: #9062ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d208b",
  "rgb": {
    "r": 93,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 274.206,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39482,
    "c": 0.16704,
    "h": 305.9
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#5D208B
secondary
#7CBA4D
accent
#E64288
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5D208B

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

Preview Lab → · Contrast checker → · Palette generator →

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