#5B2EB7#5B2EB7

#5B2EB7 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 44.6% C 0.200 H 291.0°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#5B2EB7
RGBrgb(91, 46, 183)
HSLhsl(260, 60%, 45%)
HSVhsv(260, 75%, 72%)
CMYKcmyk(50.3%, 74.9%, 0%, 28.2%)
CIE-LABlab(33.13, 51.27, -64.85)
CIE-LCHlch(33.13, 82.67, 308.33°)
OKLaboklab(44.65% 0.0717 -0.1862)
OKLCHoklch(44.65% 0.2 291)
XYZxyz(13.8362, 7.5965, 45.5278)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EB7 #8AB72E
analogous
#2E46B7 #5B2EB7 #9F2EB7
triadic
#5B2EB7 #B75B2E #2EB75B
tetradic
#5B2EB7 #B72E46 #8AB72E #2EB79F
square
#5B2EB7 #B72E46 #8AB72E #2EB79F
split-complementary
#5B2EB7 #B79F2E #46B72E
monochromatic
#2A1555 #432286 #5B2EB7 #7B4FD3 #9F80DF

Accessibility & contrast

On white

8.34
#5B2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B2EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EB7
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EB7#FFFFFF#000000##FFFFFF
##5B2EB71.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BB
Deuteranopia (green-blind)
#004BB4
Tritanopia (blue-blind)
#3C5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2eb7;
/* rgb */ color: rgb(91, 46, 183);
/* oklch */ color: oklch(44.6% 0.200 291.0);
Tailwind
colors: {
  custom: {
    50: '#936bce',
    500: '#5b2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eb7;
$custom-light: #936bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eb7",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 259.708,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44649,
    "c": 0.19954,
    "h": 291
  },
  "luminance": 0.07597
}

Semantic roles & 50–950 ramp

primary
#5B2EB7
secondary
#AEC879
accent
#E345AF
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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