#5B2EB9#5B2EB9

#5B2EB9 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.8% C 0.202 H 290.6°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#5B2EB9
RGBrgb(91, 46, 185)
HSLhsl(259, 60%, 45%)
HSVhsv(259, 75%, 73%)
CMYKcmyk(50.8%, 75.1%, 0%, 27.5%)
CIE-LABlab(33.31, 51.81, -65.74)
CIE-LCHlch(33.31, 83.70, 308.24°)
OKLaboklab(44.83% 0.0711 -0.1888)
OKLCHoklch(44.83% 0.202 290.6)
XYZxyz(14.0458, 7.6803, 46.6319)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EB9 #8CB92E
analogous
#2E47B9 #5B2EB9 #A02EB9
triadic
#5B2EB9 #B95B2E #2EB95B
tetradic
#5B2EB9 #B92E47 #8CB92E #2EB9A0
square
#5B2EB9 #B92E47 #8CB92E #2EB9A0
split-complementary
#5B2EB9 #B9A02E #47B92E
monochromatic
#2B1657 #432288 #5B2EB9 #7B51D4 #A082E0

Accessibility & contrast

On white

8.28
#5B2EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5B2EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EB9
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EB9#FFFFFF#000000##FFFFFF
##5B2EB91.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#3A5472
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2eb9;
/* rgb */ color: rgb(91, 46, 185);
/* oklch */ color: oklch(44.8% 0.202 290.6);
Tailwind
colors: {
  custom: {
    50: '#936ccf',
    500: '#5b2eb9',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eb9;
$custom-light: #936ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eb9",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 259.424,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4483,
    "c": 0.20178,
    "h": 290.6
  },
  "luminance": 0.07681
}

Semantic roles & 50–950 ramp

primary
#5B2EB9
secondary
#AFC97A
accent
#E344B0
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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