#5B2EB5#5B2EB5

#5B2EB5 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.5% C 0.197 H 291.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5B2EB5
RGBrgb(91, 46, 181)
HSLhsl(260, 59%, 45%)
HSVhsv(260, 75%, 71%)
CMYKcmyk(49.7%, 74.6%, 0%, 29%)
CIE-LABlab(32.95, 50.72, -63.96)
CIE-LCHlch(32.95, 81.63, 308.42°)
OKLaboklab(44.47% 0.0722 -0.1836)
OKLCHoklch(44.47% 0.197 291.5)
XYZxyz(13.6295, 7.5138, 44.4393)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2EB5 #88B52E
analogous
#2E45B5 #5B2EB5 #9F2EB5
triadic
#5B2EB5 #B55B2E #2EB55B
tetradic
#5B2EB5 #B52E45 #88B52E #2EB59F
square
#5B2EB5 #B52E45 #88B52E #2EB59F
split-complementary
#5B2EB5 #B59F2E #45B52E
monochromatic
#2A1553 #422284 #5B2EB5 #7A4ED2 #9F7FDE

Accessibility & contrast

On white

8.39
#5B2EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5B2EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2EB5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2EB5#FFFFFF#000000##FFFFFF
##5B2EB51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#004BB2
Tritanopia (blue-blind)
#3D526F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2eb5;
/* rgb */ color: rgb(91, 46, 181);
/* oklch */ color: oklch(44.5% 0.197 291.5);
Tailwind
colors: {
  custom: {
    50: '#926bcc',
    500: '#5b2eb5',
    950: '#000000',
  },
}
SCSS
$custom: #5b2eb5;
$custom-light: #926bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2eb5",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 181
  },
  "hsl": {
    "h": 260,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.44468,
    "c": 0.19728,
    "h": 291.5
  },
  "luminance": 0.07514
}

Semantic roles & 50–950 ramp

primary
#5B2EB5
secondary
#ADC778
accent
#E345AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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