#5F208A#5F208A

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

Color values

HEX#5F208A
RGBrgb(95, 32, 138)
HSLhsl(276, 62%, 33%)
HSVhsv(276, 77%, 54%)
CMYKcmyk(31.2%, 76.8%, 0%, 45.9%)
CIE-LABlab(27.58, 46.81, -46.59)
CIE-LCHlch(27.58, 66.04, 315.13°)
OKLaboklab(39.67% 0.1011 -0.1324)
OKLCHoklch(39.67% 0.167 307.4)
XYZxyz(9.8223, 5.3010, 24.5456)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F208A #4B8A20
analogous
#2A208A #5F208A #8A2080
triadic
#5F208A #8A5F20 #208A5F
tetradic
#5F208A #8A2A20 #4B8A20 #20808A
square
#5F208A #8A2A20 #4B8A20 #20808A
split-complementary
#5F208A #808A20 #208A2A
monochromatic
#1B0927 #3D1458 #5F208A #812CBC #9F4ED6

Accessibility & contrast

On white

10.19
#5F208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5F208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F208A
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F208A#FFFFFF#000000##FFFFFF
##5F208A1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#583A54
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f208a;
/* rgb */ color: rgb(95, 32, 138);
/* oklch */ color: oklch(39.7% 0.167 307.4);
Tailwind
colors: {
  custom: {
    50: '#9162ad',
    500: '#5f208a',
    950: '#000000',
  },
}
SCSS
$custom: #5f208a;
$custom-light: #9162ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f208a",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 275.66,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39667,
    "c": 0.16653,
    "h": 307.4
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#5F208A
secondary
#79B94D
accent
#E54285
background
#F9F6FA
surface
#F2EBF4
border
#CCC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5F208A

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

Preview Lab → · Contrast checker → · Palette generator →

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