#5F2191#5F2191

#5F2191 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.173 H 304.8°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5F2191
RGBrgb(95, 33, 145)
HSLhsl(273, 63%, 35%)
HSVhsv(273, 77%, 57%)
CMYKcmyk(34.5%, 77.2%, 0%, 43.1%)
CIE-LABlab(28.29, 48.05, -49.77)
CIE-LCHlch(28.29, 69.18, 313.99°)
OKLaboklab(40.35% 0.0986 -0.1417)
OKLCHoklch(40.35% 0.173 304.8)
XYZxyz(10.3728, 5.5650, 27.3103)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2191 #539121
analogous
#272191 #5F2191 #91218B
triadic
#5F2191 #915F21 #21915F
tetradic
#5F2191 #912721 #539121 #218B91
square
#5F2191 #912721 #539121 #218B91
split-complementary
#5F2191 #8B9121 #219127
monochromatic
#1E0A2D #3E165F #5F2191 #802CC3 #9D54D8

Accessibility & contrast

On white

9.94
#5F2191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5F2191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2191
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2191#FFFFFF#000000##FFFFFF
##5F21911.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#553D58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f2191;
/* rgb */ color: rgb(95, 33, 145);
/* oklch */ color: oklch(40.3% 0.173 304.8);
Tailwind
colors: {
  custom: {
    50: '#9163b2',
    500: '#5f2191',
    950: '#000000',
  },
}
SCSS
$custom: #5f2191;
$custom-light: #9163b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2191",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 145
  },
  "hsl": {
    "h": 273.214,
    "s": 62.921,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.17263,
    "h": 304.8
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#5F2191
secondary
#81BC52
accent
#E6428B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2191

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

Preview Lab → · Contrast checker → · Palette generator →

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