#5F2991#5F2991

#5F2991 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.163 H 303.7°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5F2991
RGBrgb(95, 41, 145)
HSLhsl(271, 56%, 36%)
HSVhsv(271, 72%, 57%)
CMYKcmyk(34.5%, 71.7%, 0%, 43.1%)
CIE-LABlab(29.57, 44.41, -47.69)
CIE-LCHlch(29.57, 65.16, 312.96°)
OKLaboklab(41.25% 0.0905 -0.1356)
OKLCHoklch(41.25% 0.163 303.7)
XYZxyz(10.6219, 6.0631, 27.3933)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2991 #5B9129
analogous
#2B2991 #5F2991 #91298F
triadic
#5F2991 #915F29 #29915F
tetradic
#5F2991 #912B29 #5B9129 #298F91
square
#5F2991 #912B29 #5B9129 #298F91
split-complementary
#5F2991 #8F9129 #29912B
monochromatic
#200E32 #401C61 #5F2991 #7E36C1 #9C62D3

Accessibility & contrast

On white

9.49
#5F2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5F2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2991
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2991#FFFFFF#000000##FFFFFF
##5F29911.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#55415A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5f2991;
/* rgb */ color: rgb(95, 41, 145);
/* oklch */ color: oklch(41.3% 0.163 303.7);
Tailwind
colors: {
  custom: {
    50: '#9167b2',
    500: '#5f2991',
    950: '#000000',
  },
}
SCSS
$custom: #5f2991;
$custom-light: #9167b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2991",
  "rgb": {
    "r": 95,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 271.154,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41254,
    "c": 0.16308,
    "h": 303.7
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#5F2991
secondary
#89B85D
accent
#DF4991
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F2991

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

Preview Lab → · Contrast checker → · Palette generator →

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