#5B2DB6#5B2DB6

#5B2DB6 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.4% C 0.199 H 291.4°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5B2DB6
RGBrgb(91, 45, 182)
HSLhsl(260, 60%, 45%)
HSVhsv(260, 75%, 71%)
CMYKcmyk(50%, 75.3%, 0%, 28.6%)
CIE-LABlab(32.87, 51.47, -64.68)
CIE-LCHlch(32.87, 82.66, 308.51°)
OKLaboklab(44.44% 0.0727 -0.1857)
OKLCHoklch(44.44% 0.199 291.4)
XYZxyz(13.6939, 7.4778, 44.9687)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DB6 #88B62D
analogous
#2D44B6 #5B2DB6 #A02DB6
triadic
#5B2DB6 #B65B2D #2DB65B
tetradic
#5B2DB6 #B62D44 #88B62D #2DB6A0
square
#5B2DB6 #B62D44 #88B62D #2DB6A0
split-complementary
#5B2DB6 #B6A02D #44B62D
monochromatic
#2A1554 #422185 #5B2DB6 #7A4DD3 #9F7EDF

Accessibility & contrast

On white

8.41
#5B2DB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2DB6
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DB6#FFFFFF#000000##FFFFFF
##5B2DB61.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#3C5270
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2db6;
/* rgb */ color: rgb(91, 45, 182);
/* oklch */ color: oklch(44.4% 0.199 291.4);
Tailwind
colors: {
  custom: {
    50: '#926bcd',
    500: '#5b2db6',
    950: '#000000',
  },
}
SCSS
$custom: #5b2db6;
$custom-light: #926bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2db6",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 260.146,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4444,
    "c": 0.19945,
    "h": 291.4
  },
  "luminance": 0.07478
}

Semantic roles & 50–950 ramp

primary
#5B2DB6
secondary
#ADC877
accent
#E344AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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