#5B3ECA#5B3ECA

#5B3ECA is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.204 H 285.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5B3ECA
RGBrgb(91, 62, 202)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 69%, 79%)
CMYKcmyk(55%, 69.3%, 0%, 20.8%)
CIE-LABlab(37.72, 48.46, -68.47)
CIE-LCHlch(37.72, 83.89, 305.29°)
OKLaboklab(48.42% 0.0542 -0.1969)
OKLCHoklch(48.42% 0.204 285.4)
XYZxyz(16.6945, 9.9327, 56.9032)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ECA #ADCA3E
analogous
#3E67CA #5B3ECA #A13ECA
triadic
#5B3ECA #CA5B3E #3ECA5B
tetradic
#5B3ECA #CA3E67 #ADCA3E #3ECAA1
square
#5B3ECA #CA3E67 #ADCA3E #3ECAA1
split-complementary
#5B3ECA #CAA13E #67CA3E
monochromatic
#2F1F6F #442C9F #5B3ECA #846ED7 #AD9EE4

Accessibility & contrast

On white

7.03
#5B3ECA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5B3ECA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ECA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ECA#FFFFFF#000000##FFFFFF
##5B3ECA1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#29637F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3eca;
/* rgb */ color: rgb(91, 62, 202);
/* oklch */ color: oklch(48.4% 0.204 285.4);
Tailwind
colors: {
  custom: {
    50: '#9476db',
    500: '#5b3eca',
    950: '#000000',
  },
}
SCSS
$custom: #5b3eca;
$custom-light: #9476db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3eca",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 252.429,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48417,
    "c": 0.20425,
    "h": 285.4
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#5B3ECA
secondary
#C4D193
accent
#E048C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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