#5F2199#5F2199

#5F2199 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.181 H 302.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#5F2199
RGBrgb(95, 33, 153)
HSLhsl(271, 65%, 36%)
HSVhsv(271, 78%, 60%)
CMYKcmyk(37.9%, 78.4%, 0%, 40%)
CIE-LABlab(28.95, 49.98, -53.60)
CIE-LCHlch(28.95, 73.28, 313.00°)
OKLaboklab(41.02% 0.0966 -0.153)
OKLCHoklch(41.02% 0.181 302.3)
XYZxyz(11.0116, 5.8205, 30.6742)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2199 #5B9921
analogous
#232199 #5F2199 #992197
triadic
#5F2199 #995F21 #21995F
tetradic
#5F2199 #992321 #5B9921 #219799
square
#5F2199 #992321 #5B9921 #219799
split-complementary
#5F2199 #979921 #219923
monochromatic
#200B34 #401667 #5F2199 #7E2CCB #9C59DB

Accessibility & contrast

On white

9.70
#5F2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5F2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2199
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2199#FFFFFF#000000##FFFFFF
##5F21991.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#53415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f2199;
/* rgb */ color: rgb(95, 33, 153);
/* oklch */ color: oklch(41.0% 0.181 302.3);
Tailwind
colors: {
  custom: {
    50: '#9264b8',
    500: '#5f2199',
    950: '#000000',
  },
}
SCSS
$custom: #5f2199;
$custom-light: #9264b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2199",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 271,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41021,
    "c": 0.18091,
    "h": 302.3
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#5F2199
secondary
#89BF56
accent
#E84091
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5F2199

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

Preview Lab → · Contrast checker → · Palette generator →

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