#5F219F#5F219F

#5F219F is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.187 H 300.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5F219F
RGBrgb(95, 33, 159)
HSLhsl(270, 66%, 38%)
HSVhsv(270, 79%, 62%)
CMYKcmyk(40.3%, 79.2%, 0%, 37.6%)
CIE-LABlab(29.47, 51.44, -56.42)
CIE-LCHlch(29.47, 76.35, 312.36°)
OKLaboklab(41.54% 0.0949 -0.1612)
OKLCHoklch(41.54% 0.187 300.5)
XYZxyz(11.5196, 6.0237, 33.3500)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219F #619F21
analogous
#21229F #5F219F #9E219F
triadic
#5F219F #9F5F21 #219F5F
tetradic
#5F219F #9F2122 #619F21 #219F9E
square
#5F219F #9F2122 #619F21 #219F9E
split-complementary
#5F219F #9F9E21 #229F21
monochromatic
#220C3A #41166C #5F219F #7D2CD2 #9C5DDD

Accessibility & contrast

On white

9.52
#5F219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5F219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F219F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219F#FFFFFF#000000##FFFFFF
##5F219F1.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#504360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f219f;
/* rgb */ color: rgb(95, 33, 159);
/* oklch */ color: oklch(41.5% 0.187 300.5);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f219f',
    950: '#000000',
  },
}
SCSS
$custom: #5f219f;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219f",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 269.524,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41543,
    "c": 0.1871,
    "h": 300.5
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#5F219F
secondary
#8FC25A
accent
#E93F95
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F219F

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

Preview Lab → · Contrast checker → · Palette generator →

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