#5B3ED3#5B3ED3

#5B3ED3 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.2% C 0.215 H 284.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5B3ED3
RGBrgb(91, 62, 211)
HSLhsl(252, 63%, 54%)
HSVhsv(252, 71%, 83%)
CMYKcmyk(56.9%, 70.6%, 0%, 17.3%)
CIE-LABlab(38.50, 51.10, -72.41)
CIE-LCHlch(38.50, 88.62, 305.21°)
OKLaboklab(49.21% 0.0525 -0.2084)
OKLCHoklch(49.21% 0.215 284.1)
XYZxyz(17.7913, 10.3714, 62.6798)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ED3 #B6D33E
analogous
#3E6BD3 #5B3ED3 #A53ED3
triadic
#5B3ED3 #D35B3E #3ED35B
tetradic
#5B3ED3 #D33E6B #B6D33E #3ED3A5
square
#5B3ED3 #D33E6B #B6D33E #3ED3A5
split-complementary
#5B3ED3 #D3A53E #6BD33E
monochromatic
#2E1C7B #4127AC #5B3ED3 #8570DE #B0A2EA

Accessibility & contrast

On white

6.83
#5B3ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5B3ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ED3
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ED3#FFFFFF#000000##FFFFFF
##5B3ED31.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0056D0
Tritanopia (blue-blind)
#1B6684
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3ed3;
/* rgb */ color: rgb(91, 62, 211);
/* oklch */ color: oklch(49.2% 0.215 284.1);
Tailwind
colors: {
  custom: {
    50: '#9676e2',
    500: '#5b3ed3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ed3;
$custom-light: #9676e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ed3",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 211
  },
  "hsl": {
    "h": 251.678,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49212,
    "c": 0.21496,
    "h": 284.1
  },
  "luminance": 0.10373
}

Semantic roles & 50–950 ramp

primary
#5B3ED3
secondary
#CAD696
accent
#E642C6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0915
muted
#7E7B84

Preview Lab

Preview with #5B3ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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