#5B2DB3#5B2DB3

#5B2DB3 is a dark, vivid violet. Relative luminance 0.074; OKLCH L 44.2% C 0.196 H 292.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#5B2DB3
RGBrgb(91, 45, 179)
HSLhsl(261, 60%, 44%)
HSVhsv(261, 75%, 70%)
CMYKcmyk(49.2%, 74.9%, 0%, 29.8%)
CIE-LABlab(32.60, 50.66, -63.34)
CIE-LCHlch(32.60, 81.10, 308.65°)
OKLaboklab(44.17% 0.0735 -0.1818)
OKLCHoklch(44.17% 0.196 292)
XYZxyz(13.3872, 7.3551, 43.3534)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DB3 #85B32D
analogous
#2D42B3 #5B2DB3 #9E2DB3
triadic
#5B2DB3 #B35B2D #2DB35B
tetradic
#5B2DB3 #B32D42 #85B32D #2DB39E
square
#5B2DB3 #B32D42 #85B32D #2DB39E
split-complementary
#5B2DB3 #B39E2D #42B32D
monochromatic
#291451 #422182 #5B2DB3 #7A4BD2 #9E7CDE

Accessibility & contrast

On white

8.50
#5B2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#5B2DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DB3
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DB3#FFFFFF#000000##FFFFFF
##5B2DB31.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#3E516E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5b2db3;
/* rgb */ color: rgb(91, 45, 179);
/* oklch */ color: oklch(44.2% 0.196 292.0);
Tailwind
colors: {
  custom: {
    50: '#926bcb',
    500: '#5b2db3',
    950: '#000000',
  },
}
SCSS
$custom: #5b2db3;
$custom-light: #926bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2db3",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 260.597,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44169,
    "c": 0.19608,
    "h": 292
  },
  "luminance": 0.07356
}

Semantic roles & 50–950 ramp

primary
#5B2DB3
secondary
#ABC775
accent
#E345AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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