#5F208C#5F208C

#5F208C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.169 H 306.6°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5F208C
RGBrgb(95, 32, 140)
HSLhsl(275, 63%, 34%)
HSVhsv(275, 77%, 55%)
CMYKcmyk(32.1%, 77.1%, 0%, 45.1%)
CIE-LABlab(27.74, 47.28, -47.57)
CIE-LCHlch(27.74, 67.07, 314.82°)
OKLaboklab(39.83% 0.1006 -0.1353)
OKLCHoklch(39.83% 0.169 306.6)
XYZxyz(9.9684, 5.3595, 25.3152)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208C #4D8C20
analogous
#29208C #5F208C #8C2083
triadic
#5F208C #8C5F20 #208C5F
tetradic
#5F208C #8C2920 #4D8C20 #20838C
square
#5F208C #8C2920 #4D8C20 #20838C
split-complementary
#5F208C #838C20 #208C29
monochromatic
#1B0928 #3D155A #5F208C #812BBE #9E50D7

Accessibility & contrast

On white

10.14
#5F208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F208C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208C#FFFFFF#000000##FFFFFF
##5F208C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f208c;
/* rgb */ color: rgb(95, 32, 140);
/* oklch */ color: oklch(39.8% 0.169 306.6);
Tailwind
colors: {
  custom: {
    50: '#9163ae',
    500: '#5f208c',
    950: '#000000',
  },
}
SCSS
$custom: #5f208c;
$custom-light: #9163ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208c",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 275,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3983,
    "c": 0.16858,
    "h": 306.6
  },
  "luminance": 0.05359
}

Semantic roles & 50–950 ramp

primary
#5F208C
secondary
#7BBA4E
accent
#E64286
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F208C

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

Preview Lab → · Contrast checker → · Palette generator →

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