#5B2DCC#5B2DCC

#5B2DCC is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.5% C 0.224 H 287.3°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2DCC
RGBrgb(91, 45, 204)
HSLhsl(257, 64%, 49%)
HSVhsv(257, 78%, 80%)
CMYKcmyk(55.4%, 77.9%, 0%, 20%)
CIE-LABlab(34.92, 57.44, -74.23)
CIE-LCHlch(34.92, 93.86, 307.73°)
OKLaboklab(46.5% 0.0666 -0.2137)
OKLCHoklch(46.5% 0.224 287.3)
XYZxyz(16.1486, 8.4597, 57.8970)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2DCC #9ECC2D
analogous
#2D4FCC #5B2DCC #AB2DCC
triadic
#5B2DCC #CC5B2D #2DCC5B
tetradic
#5B2DCC #CC2D4F #9ECC2D #2DCCAB
square
#5B2DCC #CC2D4F #9ECC2D #2DCCAB
split-complementary
#5B2DCC #CCAB2D #4FCC2D
monochromatic
#2E1768 #45229A #5B2DCC #805BDB #A78DE6

Accessibility & contrast

On white

7.80
#5B2DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B2DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2DCC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2DCC#FFFFFF#000000##FFFFFF
##5B2DCC1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#285B7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b2dcc;
/* rgb */ color: rgb(91, 45, 204);
/* oklch */ color: oklch(46.5% 0.224 287.3);
Tailwind
colors: {
  custom: {
    50: '#966cdd',
    500: '#5b2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5b2dcc;
$custom-light: #966cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2dcc",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 257.358,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46497,
    "c": 0.22381,
    "h": 287.3
  },
  "luminance": 0.08461
}

Semantic roles & 50–950 ramp

primary
#5B2DCC
secondary
#BAD085
accent
#E741B7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0F0715
muted
#7E7A83

Preview Lab

Preview with #5B2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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