#5B2292#5B2292

#5B2292 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.172 H 302.2°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#5B2292
RGBrgb(91, 34, 146)
HSLhsl(271, 62%, 35%)
HSVhsv(271, 77%, 57%)
CMYKcmyk(37.7%, 76.7%, 0%, 42.7%)
CIE-LABlab(27.96, 47.13, -50.94)
CIE-LCHlch(27.96, 69.40, 312.77°)
OKLaboklab(40.02% 0.0915 -0.1453)
OKLCHoklch(40.02% 0.172 302.2)
XYZxyz(10.0735, 5.4435, 27.7085)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2292 #599222
analogous
#232292 #5B2292 #922291
triadic
#5B2292 #925B22 #22925B
tetradic
#5B2292 #922322 #599222 #229192
square
#5B2292 #922322 #599222 #229192
split-complementary
#5B2292 #919222 #229223
monochromatic
#1D0B2F #3C1660 #5B2292 #7A2EC4 #9857D8

Accessibility & contrast

On white

10.05
#5B2292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5B2292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2292
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2292#FFFFFF#000000##FFFFFF
##5B22921.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#4F3F59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b2292;
/* rgb */ color: rgb(91, 34, 146);
/* oklch */ color: oklch(40.0% 0.172 302.2);
Tailwind
colors: {
  custom: {
    50: '#8f63b3',
    500: '#5b2292',
    950: '#000000',
  },
}
SCSS
$custom: #5b2292;
$custom-light: #8f63b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2292",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 270.536,
    "s": 62.222,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40023,
    "c": 0.17172,
    "h": 302.2
  },
  "luminance": 0.05444
}

Semantic roles & 50–950 ramp

primary
#5B2292
secondary
#87BC54
accent
#E54392
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2292

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

Preview Lab → · Contrast checker → · Palette generator →

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