#5B3ED4#5B3ED4

#5B3ED4 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.3% C 0.216 H 284.0°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5B3ED4
RGBrgb(91, 62, 212)
HSLhsl(252, 64%, 54%)
HSVhsv(252, 71%, 83%)
CMYKcmyk(57.1%, 70.8%, 0%, 16.9%)
CIE-LABlab(38.59, 51.39, -72.84)
CIE-LCHlch(38.59, 89.14, 305.21°)
OKLaboklab(49.3% 0.0523 -0.2097)
OKLCHoklch(49.3% 0.216 284)
XYZxyz(17.9170, 10.4217, 63.3421)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ED4 #B7D43E
analogous
#3E6CD4 #5B3ED4 #A63ED4
triadic
#5B3ED4 #D45B3E #3ED45B
tetradic
#5B3ED4 #D43E6C #B7D43E #3ED4A6
square
#5B3ED4 #D43E6C #B7D43E #3ED4A6
split-complementary
#5B3ED4 #D4A63E #6CD43E
monochromatic
#2E1C7C #4127AE #5B3ED4 #8670DF #B0A2EA

Accessibility & contrast

On white

6.81
#5B3ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5B3ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3ED4
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ED4#FFFFFF#000000##FFFFFF
##5B3ED41.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0056D1
Tritanopia (blue-blind)
#196685
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3ed4;
/* rgb */ color: rgb(91, 62, 212);
/* oklch */ color: oklch(49.3% 0.216 284.0);
Tailwind
colors: {
  custom: {
    50: '#9676e2',
    500: '#5b3ed4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ed4;
$custom-light: #9676e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ed4",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 251.6,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49302,
    "c": 0.21615,
    "h": 284
  },
  "luminance": 0.10423
}

Semantic roles & 50–950 ramp

primary
#5B3ED4
secondary
#CBD797
accent
#E741C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5B3ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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