#5B3BCA#5B3BCA

#5B3BCA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.208 H 285.8°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5B3BCA
RGBrgb(91, 59, 202)
HSLhsl(253, 57%, 51%)
HSVhsv(253, 71%, 79%)
CMYKcmyk(55%, 70.8%, 0%, 20.8%)
CIE-LABlab(37.14, 50.06, -69.42)
CIE-LCHlch(37.14, 85.59, 305.80°)
OKLaboklab(48.01% 0.0567 -0.1997)
OKLCHoklch(48.01% 0.208 285.8)
XYZxyz(16.5358, 9.6154, 56.8503)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BCA #AACA3B
analogous
#3B62CA #5B3BCA #A33BCA
triadic
#5B3BCA #CA5B3B #3BCA5B
tetradic
#5B3BCA #CA3B62 #AACA3B #3BCAA3
square
#5B3BCA #CA3B62 #AACA3B #3BCAA3
split-complementary
#5B3BCA #CAA33B #62CA3B
monochromatic
#2F1E6D #442B9D #5B3BCA #836BD7 #AC9BE4

Accessibility & contrast

On white

7.18
#5B3BCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B3BCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BCA
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BCA#FFFFFF#000000##FFFFFF
##5B3BCA1.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#29617E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3bca;
/* rgb */ color: rgb(91, 59, 202);
/* oklch */ color: oklch(48.0% 0.208 285.8);
Tailwind
colors: {
  custom: {
    50: '#9474db',
    500: '#5b3bca',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bca;
$custom-light: #9474db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bca",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 202
  },
  "hsl": {
    "h": 253.427,
    "s": 57.43,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48005,
    "c": 0.20758,
    "h": 285.8
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#5B3BCA
secondary
#C2D091
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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