#5B3ECC#5B3ECC

#5B3ECC is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.6% C 0.207 H 285.1°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5B3ECC
RGBrgb(91, 62, 204)
HSLhsl(252, 58%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(55.4%, 69.6%, 0%, 20%)
CIE-LABlab(37.89, 49.04, -69.35)
CIE-LCHlch(37.89, 84.94, 305.27°)
OKLaboklab(48.59% 0.0538 -0.1995)
OKLCHoklch(48.59% 0.207 285.1)
XYZxyz(16.9328, 10.0281, 58.1584)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ECC #AFCC3E
analogous
#3E68CC #5B3ECC #A23ECC
triadic
#5B3ECC #CC5B3E #3ECC5B
tetradic
#5B3ECC #CC3E68 #AFCC3E #3ECCA2
square
#5B3ECC #CC3E68 #AFCC3E #3ECCA2
split-complementary
#5B3ECC #CCA23E #68CC3E
monochromatic
#2F1E72 #432BA2 #5B3ECC #846ED9 #AD9FE6

Accessibility & contrast

On white

6.99
#5B3ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5B3ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ECC
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ECC#FFFFFF#000000##FFFFFF
##5B3ECC1.006.993.016.99
#FFFFFF6.991.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#266380
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3ecc;
/* rgb */ color: rgb(91, 62, 204);
/* oklch */ color: oklch(48.6% 0.207 285.1);
Tailwind
colors: {
  custom: {
    50: '#9576dd',
    500: '#5b3ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ecc;
$custom-light: #9576dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ecc",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 204
  },
  "hsl": {
    "h": 252.254,
    "s": 58.197,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48592,
    "c": 0.20664,
    "h": 285.1
  },
  "luminance": 0.10029
}

Semantic roles & 50–950 ramp

primary
#5B3ECC
secondary
#C5D294
accent
#E146C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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