#5B3FD2#5B3FD2

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

Color values

HEX#5B3FD2
RGBrgb(91, 63, 210)
HSLhsl(251, 62%, 54%)
HSVhsv(251, 70%, 82%)
CMYKcmyk(56.7%, 70%, 0%, 17.6%)
CIE-LABlab(38.61, 50.27, -71.66)
CIE-LCHlch(38.61, 87.53, 305.05°)
OKLaboklab(49.26% 0.0519 -0.2063)
OKLCHoklch(49.26% 0.213 284.1)
XYZxyz(17.7212, 10.4312, 62.0399)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD2 #B6D23F
analogous
#3F6CD2 #5B3FD2 #A53FD2
triadic
#5B3FD2 #D25B3F #3FD25B
tetradic
#5B3FD2 #D23F6C #B6D23F #3FD2A5
square
#5B3FD2 #D23F6C #B6D23F #3FD2A5
split-complementary
#5B3FD2 #D2A53F #6CD23F
monochromatic
#2E1D7A #4128AC #5B3FD2 #8571DE #B0A2E9

Accessibility & contrast

On white

6.80
#5B3FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5B3FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD2
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD2#FFFFFF#000000##FFFFFF
##5B3FD21.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#1D6684
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3fd2;
/* rgb */ color: rgb(91, 63, 210);
/* oklch */ color: oklch(49.3% 0.213 284.1);
Tailwind
colors: {
  custom: {
    50: '#9577e1',
    500: '#5b3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd2;
$custom-light: #9577e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd2",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 251.429,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.4926,
    "c": 0.2127,
    "h": 284.1
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#5B3FD2
secondary
#CAD697
accent
#E543C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5B3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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