#5B2DB2#5B2DB2

#5B2DB2 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.1% C 0.195 H 292.2°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#5B2DB2
RGBrgb(91, 45, 178)
HSLhsl(261, 60%, 44%)
HSVhsv(261, 75%, 70%)
CMYKcmyk(48.9%, 74.7%, 0%, 30.2%)
CIE-LABlab(32.51, 50.39, -62.89)
CIE-LCHlch(32.51, 80.58, 308.70°)
OKLaboklab(44.08% 0.0737 -0.1805)
OKLCHoklch(44.08% 0.195 292.2)
XYZxyz(13.2864, 7.3148, 42.8227)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DB2 #84B22D
analogous
#2D41B2 #5B2DB2 #9D2DB2
triadic
#5B2DB2 #B25B2D #2DB25B
tetradic
#5B2DB2 #B22D41 #84B22D #2DB29D
square
#5B2DB2 #B22D41 #84B22D #2DB29D
split-complementary
#5B2DB2 #B29D2D #41B22D
monochromatic
#291450 #422181 #5B2DB2 #794BD1 #9E7CDE

Accessibility & contrast

On white

8.53
#5B2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#5B2DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DB2
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DB2#FFFFFF#000000##FFFFFF
##5B2DB21.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#3F516D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5b2db2;
/* rgb */ color: rgb(91, 45, 178);
/* oklch */ color: oklch(44.1% 0.195 292.2);
Tailwind
colors: {
  custom: {
    50: '#926bca',
    500: '#5b2db2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2db2;
$custom-light: #926bca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2db2",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 260.752,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.44079,
    "c": 0.19495,
    "h": 292.2
  },
  "luminance": 0.07315
}

Semantic roles & 50–950 ramp

primary
#5B2DB2
secondary
#AAC675
accent
#E345AC
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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