#5B2291#5B2291

#5B2291 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.171 H 302.5°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5B2291
RGBrgb(91, 34, 145)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(27.88, 46.88, -50.46)
CIE-LCHlch(27.88, 68.88, 312.89°)
OKLaboklab(39.94% 0.0917 -0.1439)
OKLCHoklch(39.94% 0.171 302.5)
XYZxyz(9.9960, 5.4125, 27.3007)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2291 #589122
analogous
#242291 #5B2291 #91228F
triadic
#5B2291 #915B22 #22915B
tetradic
#5B2291 #912422 #589122 #228F91
square
#5B2291 #912422 #589122 #228F91
split-complementary
#5B2291 #8F9122 #229124
monochromatic
#1D0B2E #3C165F #5B2291 #7A2EC3 #9856D7

Accessibility & contrast

On white

10.08
#5B2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2291
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2291#FFFFFF#000000##FFFFFF
##5B22911.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#503E58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2291;
/* rgb */ color: rgb(91, 34, 145);
/* oklch */ color: oklch(39.9% 0.171 302.5);
Tailwind
colors: {
  custom: {
    50: '#8f63b2',
    500: '#5b2291',
    950: '#000000',
  },
}
SCSS
$custom: #5b2291;
$custom-light: #8f63b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2291",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 270.811,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39938,
    "c": 0.17065,
    "h": 302.5
  },
  "luminance": 0.05413
}

Semantic roles & 50–950 ramp

primary
#5B2291
secondary
#86BB53
accent
#E54392
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2291

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

Preview Lab → · Contrast checker → · Palette generator →

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