#5F208F#5F208F

#5F208F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.172 H 305.6°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5F208F
RGBrgb(95, 32, 143)
HSLhsl(274, 63%, 34%)
HSVhsv(274, 78%, 56%)
CMYKcmyk(33.6%, 77.6%, 0%, 43.9%)
CIE-LABlab(27.98, 47.99, -49.04)
CIE-LCHlch(27.98, 68.61, 314.38°)
OKLaboklab(40.08% 0.1 -0.1396)
OKLCHoklch(40.08% 0.172 305.6)
XYZxyz(10.1926, 5.4492, 26.4961)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208F #508F20
analogous
#27208F #5F208F #8F2088
triadic
#5F208F #8F5F20 #208F5F
tetradic
#5F208F #8F2720 #508F20 #20888F
square
#5F208F #8F2720 #508F20 #20888F
split-complementary
#5F208F #888F20 #208F27
monochromatic
#1D0A2B #3E155D #5F208F #802BC1 #9E51D8

Accessibility & contrast

On white

10.05
#5F208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5F208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F208F
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208F#FFFFFF#000000##FFFFFF
##5F208F1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#563C56
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5f208f;
/* rgb */ color: rgb(95, 32, 143);
/* oklch */ color: oklch(40.1% 0.172 305.6);
Tailwind
colors: {
  custom: {
    50: '#9163b1',
    500: '#5f208f',
    950: '#000000',
  },
}
SCSS
$custom: #5f208f;
$custom-light: #9163b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208f",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 274.054,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40076,
    "c": 0.17167,
    "h": 305.6
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#5F208F
secondary
#7EBB4F
accent
#E64189
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F208F

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

Preview Lab → · Contrast checker → · Palette generator →

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