#5F208E#5F208E

#5F208E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.171 H 306.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5F208E
RGBrgb(95, 32, 142)
HSLhsl(274, 63%, 34%)
HSVhsv(274, 77%, 56%)
CMYKcmyk(33.1%, 77.5%, 0%, 44.3%)
CIE-LABlab(27.90, 47.75, -48.55)
CIE-LCHlch(27.90, 68.10, 314.52°)
OKLaboklab(39.99% 0.1002 -0.1381)
OKLCHoklch(39.99% 0.171 306)
XYZxyz(10.1172, 5.4190, 26.0989)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208E #4F8E20
analogous
#28208E #5F208E #8E2086
triadic
#5F208E #8E5F20 #208E5F
tetradic
#5F208E #8E2820 #4F8E20 #20868E
square
#5F208E #8E2820 #4F8E20 #20868E
split-complementary
#5F208E #868E20 #208E28
monochromatic
#1C092A #3E155C #5F208E #802BC0 #9E51D8

Accessibility & contrast

On white

10.08
#5F208E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5F208E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F208E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208E#FFFFFF#000000##FFFFFF
##5F208E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#573B56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f208e;
/* rgb */ color: rgb(95, 32, 142);
/* oklch */ color: oklch(40.0% 0.171 306.0);
Tailwind
colors: {
  custom: {
    50: '#9163b0',
    500: '#5f208e',
    950: '#000000',
  },
}
SCSS
$custom: #5f208e;
$custom-light: #9163b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208e",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 142
  },
  "hsl": {
    "h": 274.364,
    "s": 63.218,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39994,
    "c": 0.17063,
    "h": 306
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#5F208E
secondary
#7DBB4F
accent
#E64288
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F208E

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

Preview Lab → · Contrast checker → · Palette generator →

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