#5F208B#5F208B

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

Color values

HEX#5F208B
RGBrgb(95, 32, 139)
HSLhsl(275, 63%, 34%)
HSVhsv(275, 77%, 55%)
CMYKcmyk(31.7%, 77%, 0%, 45.5%)
CIE-LABlab(27.66, 47.04, -47.08)
CIE-LCHlch(27.66, 66.56, 314.98°)
OKLaboklab(39.75% 0.1008 -0.1338)
OKLCHoklch(39.75% 0.168 307)
XYZxyz(9.8950, 5.3301, 24.9286)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208B #4C8B20
analogous
#29208B #5F208B #8B2081
triadic
#5F208B #8B5F20 #208B5F
tetradic
#5F208B #8B2920 #4C8B20 #20818B
square
#5F208B #8B2920 #4C8B20 #20818B
split-complementary
#5F208B #818B20 #208B29
monochromatic
#1B0928 #3D1559 #5F208B #812BBD #9F4FD6

Accessibility & contrast

On white

10.16
#5F208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F208B
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208B#FFFFFF#000000##FFFFFF
##5F208B1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f208b;
/* rgb */ color: rgb(95, 32, 139);
/* oklch */ color: oklch(39.7% 0.168 307.0);
Tailwind
colors: {
  custom: {
    50: '#9162ae',
    500: '#5f208b',
    950: '#000000',
  },
}
SCSS
$custom: #5f208b;
$custom-light: #9162ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208b",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 275.327,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39748,
    "c": 0.16756,
    "h": 307
  },
  "luminance": 0.0533
}

Semantic roles & 50–950 ramp

primary
#5F208B
secondary
#7ABA4D
accent
#E64285
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F208B

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

Preview Lab → · Contrast checker → · Palette generator →

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