#5F219E#5F219E

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

Color values

HEX#5F219E
RGBrgb(95, 33, 158)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 62%)
CMYKcmyk(39.9%, 79.1%, 0%, 38%)
CIE-LABlab(29.38, 51.19, -55.95)
CIE-LCHlch(29.38, 75.84, 312.46°)
OKLaboklab(41.46% 0.0952 -0.1599)
OKLCHoklch(41.46% 0.186 300.8)
XYZxyz(11.4332, 5.9891, 32.8948)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219E #609E21
analogous
#21229E #5F219E #9E219E
triadic
#5F219E #9E5F21 #219E5F
tetradic
#5F219E #9E2122 #609E21 #219E9E
square
#5F219E #9E2122 #609E21 #219E9E
split-complementary
#5F219E #9E9E21 #229E21
monochromatic
#220C39 #41166B #5F219E #7D2CD1 #9C5CDD

Accessibility & contrast

On white

9.56
#5F219E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F219E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219E#FFFFFF#000000##FFFFFF
##5F219E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#51435F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f219e;
/* rgb */ color: rgb(95, 33, 158);
/* oklch */ color: oklch(41.5% 0.186 300.8);
Tailwind
colors: {
  custom: {
    50: '#9364bc',
    500: '#5f219e',
    950: '#000000',
  },
}
SCSS
$custom: #5f219e;
$custom-light: #9364bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219e",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 158
  },
  "hsl": {
    "h": 269.76,
    "s": 65.445,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.18607,
    "h": 300.8
  },
  "luminance": 0.05989
}

Semantic roles & 50–950 ramp

primary
#5F219E
secondary
#8EC159
accent
#E83F95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F219E

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

Preview Lab → · Contrast checker → · Palette generator →

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