#5F219C#5F219C

#5F219C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.184 H 301.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#5F219C
RGBrgb(95, 33, 156)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 61%)
CMYKcmyk(39.1%, 78.8%, 0%, 38.8%)
CIE-LABlab(29.21, 50.71, -55.01)
CIE-LCHlch(29.21, 74.82, 312.67°)
OKLaboklab(41.28% 0.0958 -0.1571)
OKLCHoklch(41.28% 0.184 301.4)
XYZxyz(11.2625, 5.9208, 31.9955)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219C #5E9C21
analogous
#22219C #5F219C #9C219C
triadic
#5F219C #9C5F21 #219C5F
tetradic
#5F219C #9C2221 #5E9C21 #219C9C
square
#5F219C #9C2221 #5E9C21 #219C9C
split-complementary
#5F219C #9C9C21 #219C22
monochromatic
#210C37 #401669 #5F219C #7E2CCF #9C5BDC

Accessibility & contrast

On white

9.61
#5F219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F219C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219C#FFFFFF#000000##FFFFFF
##5F219C1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#51425E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f219c;
/* rgb */ color: rgb(95, 33, 156);
/* oklch */ color: oklch(41.3% 0.184 301.4);
Tailwind
colors: {
  custom: {
    50: '#9364ba',
    500: '#5f219c',
    950: '#000000',
  },
}
SCSS
$custom: #5f219c;
$custom-light: #9364ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219c",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 270.244,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4128,
    "c": 0.18401,
    "h": 301.4
  },
  "luminance": 0.05921
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F219C

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

Preview Lab → · Contrast checker → · Palette generator →

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