#5F219B#5F219B

#5F219B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.183 H 301.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#5F219B
RGBrgb(95, 33, 155)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(38.7%, 78.7%, 0%, 39.2%)
CIE-LABlab(29.13, 50.46, -54.54)
CIE-LCHlch(29.13, 74.31, 312.77°)
OKLaboklab(41.19% 0.096 -0.1557)
OKLCHoklch(41.19% 0.183 301.7)
XYZxyz(11.1781, 5.8871, 31.5514)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219B #5D9B21
analogous
#22219B #5F219B #9B219A
triadic
#5F219B #9B5F21 #219B5F
tetradic
#5F219B #9B2221 #5D9B21 #219A9B
square
#5F219B #9B2221 #5D9B21 #219A9B
split-complementary
#5F219B #9A9B21 #219B22
monochromatic
#210C36 #401669 #5F219B #7E2CCD #9C5ADC

Accessibility & contrast

On white

9.64
#5F219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5F219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F219B
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219B#FFFFFF#000000##FFFFFF
##5F219B1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#52415D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f219b;
/* rgb */ color: rgb(95, 33, 155);
/* oklch */ color: oklch(41.2% 0.183 301.7);
Tailwind
colors: {
  custom: {
    50: '#9264b9',
    500: '#5f219b',
    950: '#000000',
  },
}
SCSS
$custom: #5f219b;
$custom-light: #9264b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219b",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 270.492,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.41194,
    "c": 0.18297,
    "h": 301.7
  },
  "luminance": 0.05887
}

Semantic roles & 50–950 ramp

primary
#5F219B
secondary
#8BC058
accent
#E84093
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F219B

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

Preview Lab → · Contrast checker → · Palette generator →

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