#5B2991#5B2991

#5B2991 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.162 H 301.5°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5B2991
RGBrgb(91, 41, 145)
HSLhsl(269, 56%, 36%)
HSVhsv(269, 72%, 57%)
CMYKcmyk(37.2%, 71.7%, 0%, 43.1%)
CIE-LABlab(29.04, 43.59, -48.57)
CIE-LCHlch(29.04, 65.26, 311.91°)
OKLaboklab(40.76% 0.0847 -0.1384)
OKLCHoklch(40.76% 0.162 301.5)
XYZxyz(10.2169, 5.8543, 27.3743)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2991 #5F9129
analogous
#292B91 #5B2991 #8F2991
triadic
#5B2991 #915B29 #29915B
tetradic
#5B2991 #91292B #5F9129 #29918F
square
#5B2991 #91292B #5F9129 #29918F
split-complementary
#5B2991 #918F29 #2B9129
monochromatic
#1F0E32 #3D1C61 #5B2991 #7936C1 #9862D3

Accessibility & contrast

On white

9.67
#5B2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5B2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2991
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2991#FFFFFF#000000##FFFFFF
##5B29911.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00448F
Tritanopia (blue-blind)
#4F425A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2991;
/* rgb */ color: rgb(91, 41, 145);
/* oklch */ color: oklch(40.8% 0.162 301.5);
Tailwind
colors: {
  custom: {
    50: '#8e67b2',
    500: '#5b2991',
    950: '#000000',
  },
}
SCSS
$custom: #5b2991;
$custom-light: #8e67b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2991",
  "rgb": {
    "r": 91,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 268.846,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40761,
    "c": 0.16225,
    "h": 301.5
  },
  "luminance": 0.05854
}

Semantic roles & 50–950 ramp

primary
#5B2991
secondary
#8DB85D
accent
#DF4997
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2991

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

Preview Lab → · Contrast checker → · Palette generator →

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