#5F219D#5F219D

#5F219D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.4% C 0.185 H 301.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5F219D
RGBrgb(95, 33, 157)
HSLhsl(270, 65%, 37%)
HSVhsv(270, 79%, 62%)
CMYKcmyk(39.5%, 79%, 0%, 38.4%)
CIE-LABlab(29.30, 50.95, -55.48)
CIE-LCHlch(29.30, 75.33, 312.56°)
OKLaboklab(41.37% 0.0955 -0.1585)
OKLCHoklch(41.37% 0.185 301.1)
XYZxyz(11.3475, 5.9548, 32.4433)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F219D #5F9D21
analogous
#21219D #5F219D #9D219D
triadic
#5F219D #9D5F21 #219D5F
tetradic
#5F219D #9D2121 #5F9D21 #219D9D
square
#5F219D #9D2121 #5F9D21 #219D9D
split-complementary
#5F219D #9D9D21 #219D21
monochromatic
#220C38 #40166A #5F219D #7E2CD0 #9C5CDD

Accessibility & contrast

On white

9.58
#5F219D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5F219D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F219D
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F219D#FFFFFF#000000##FFFFFF
##5F219D1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#51425F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5f219d;
/* rgb */ color: rgb(95, 33, 157);
/* oklch */ color: oklch(41.4% 0.185 301.1);
Tailwind
colors: {
  custom: {
    50: '#9364bb',
    500: '#5f219d',
    950: '#000000',
  },
}
SCSS
$custom: #5f219d;
$custom-light: #9364bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f219d",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 157
  },
  "hsl": {
    "h": 270,
    "s": 65.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41367,
    "c": 0.18504,
    "h": 301.1
  },
  "luminance": 0.05955
}

Semantic roles & 50–950 ramp

primary
#5F219D
secondary
#8DC159
accent
#E84094
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F219D

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

Preview Lab → · Contrast checker → · Palette generator →

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