#5B2DB7#5B2DB7

#5B2DB7 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.5% C 0.201 H 291.2°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#5B2DB7
RGBrgb(91, 45, 183)
HSLhsl(260, 61%, 45%)
HSVhsv(260, 75%, 72%)
CMYKcmyk(50.3%, 75.4%, 0%, 28.2%)
CIE-LABlab(32.96, 51.74, -65.13)
CIE-LCHlch(32.96, 83.18, 308.47°)
OKLaboklab(44.53% 0.0725 -0.187)
OKLCHoklch(44.53% 0.201 291.2)
XYZxyz(13.7976, 7.5193, 45.5149)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DB7 #89B72D
analogous
#2D44B7 #5B2DB7 #A02DB7
triadic
#5B2DB7 #B75B2D #2DB75B
tetradic
#5B2DB7 #B72D44 #89B72D #2DB7A0
square
#5B2DB7 #B72D44 #89B72D #2DB7A0
split-complementary
#5B2DB7 #B7A02D #44B72D
monochromatic
#2A1555 #432186 #5B2DB7 #7A4ED3 #9F7FDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B2DB7#FFFFFF#000000##FFFFFF
##5B2DB71.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)
#0050BB
Deuteranopia (green-blind)
#004AB4
Tritanopia (blue-blind)
#3C5370
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b2db7;
/* rgb */ color: rgb(91, 45, 183);
/* oklch */ color: oklch(44.5% 0.201 291.2);
Tailwind
colors: {
  custom: {
    50: '#936bce',
    500: '#5b2db7',
    950: '#000000',
  },
}
SCSS
$custom: #5b2db7;
$custom-light: #936bce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2db7",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 260,
    "s": 60.526,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44531,
    "c": 0.20057,
    "h": 291.2
  },
  "luminance": 0.0752
}

Semantic roles & 50–950 ramp

primary
#5B2DB7
secondary
#ADC878
accent
#E444AE
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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