#5F219A#5F219A

#5F219A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.182 H 302.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5F219A
RGBrgb(95, 33, 154)
HSLhsl(271, 65%, 37%)
HSVhsv(271, 79%, 60%)
CMYKcmyk(38.3%, 78.6%, 0%, 39.6%)
CIE-LABlab(29.04, 50.22, -54.07)
CIE-LCHlch(29.04, 73.80, 312.88°)
OKLaboklab(41.11% 0.0963 -0.1544)
OKLCHoklch(41.11% 0.182 302)
XYZxyz(11.0945, 5.8537, 31.1110)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219A #5C9A21
analogous
#23219A #5F219A #9A2199
triadic
#5F219A #9A5F21 #219A5F
tetradic
#5F219A #9A2321 #5C9A21 #21999A
square
#5F219A #9A2321 #5C9A21 #21999A
split-complementary
#5F219A #999A21 #219A23
monochromatic
#210B35 #401668 #5F219A #7E2CCC #9C5ADC

Accessibility & contrast

On white

9.67
#5F219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5F219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F219A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219A#FFFFFF#000000##FFFFFF
##5F219A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f219a;
/* rgb */ color: rgb(95, 33, 154);
/* oklch */ color: oklch(41.1% 0.182 302.0);
Tailwind
colors: {
  custom: {
    50: '#9264b9',
    500: '#5f219a',
    950: '#000000',
  },
}
SCSS
$custom: #5f219a;
$custom-light: #9264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219a",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 270.744,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41107,
    "c": 0.18194,
    "h": 302
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#5F219A
secondary
#8AC057
accent
#E84092
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F219A

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

Preview Lab → · Contrast checker → · Palette generator →

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