#5B2CD2#5B2CD2

#5B2CD2 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 47.0% C 0.231 H 286.4°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B2CD2
RGBrgb(91, 44, 210)
HSLhsl(257, 65%, 50%)
HSVhsv(257, 79%, 82%)
CMYKcmyk(56.7%, 79%, 0%, 17.6%)
CIE-LABlab(35.36, 59.49, -77.00)
CIE-LCHlch(35.36, 97.30, 307.69°)
OKLaboklab(46.97% 0.0654 -0.2217)
OKLCHoklch(46.97% 0.231 286.4)
XYZxyz(16.8444, 8.6777, 61.7476)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2CD2 #A3D22C
analogous
#2C50D2 #5B2CD2 #AE2CD2
triadic
#5B2CD2 #D25B2C #2CD25B
tetradic
#5B2CD2 #D22C50 #A3D22C #2CD2AE
square
#5B2CD2 #D22C50 #A3D22C #2CD2AE
split-complementary
#5B2CD2 #D2AE2C #50D22C
monochromatic
#2F176D #45219F #5B2CD2 #825EDD #A991E8

Accessibility & contrast

On white

7.68
#5B2CD2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B2CD2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2CD2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2CD2#FFFFFF#000000##FFFFFF
##5B2CD21.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D7
Deuteranopia (green-blind)
#004ECF
Tritanopia (blue-blind)
#205D7F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b2cd2;
/* rgb */ color: rgb(91, 44, 210);
/* oklch */ color: oklch(47.0% 0.231 286.4);
Tailwind
colors: {
  custom: {
    50: '#976ce1',
    500: '#5b2cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b2cd2;
$custom-light: #976ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2cd2",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 210
  },
  "hsl": {
    "h": 256.988,
    "s": 65.354,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46974,
    "c": 0.23118,
    "h": 286.4
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#5B2CD2
secondary
#BDD287
accent
#E83FB9
background
#FAF6FE
surface
#F3ECFC
border
#CDC7D5
text
#0F0715
muted
#7F7A84

Preview Lab

Preview with #5B2CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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