#5B3FD1#5B3FD1

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

Color values

HEX#5B3FD1
RGBrgb(91, 63, 209)
HSLhsl(252, 61%, 53%)
HSVhsv(252, 70%, 82%)
CMYKcmyk(56.5%, 69.9%, 0%, 18%)
CIE-LABlab(38.52, 49.98, -71.22)
CIE-LCHlch(38.52, 87.01, 305.06°)
OKLaboklab(49.17% 0.0521 -0.205)
OKLCHoklch(49.17% 0.212 284.3)
XYZxyz(17.5970, 10.3815, 61.3858)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD1 #B5D13F
analogous
#3F6CD1 #5B3FD1 #A43FD1
triadic
#5B3FD1 #D15B3F #3FD15B
tetradic
#5B3FD1 #D13F6C #B5D13F #3FD1A4
square
#5B3FD1 #D13F6C #B5D13F #3FD1A4
split-complementary
#5B3FD1 #D1A43F #6CD13F
monochromatic
#2F1D79 #4229AA #5B3FD1 #8570DD #AFA2E9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B3FD1#FFFFFF#000000##FFFFFF
##5B3FD11.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0056CE
Tritanopia (blue-blind)
#1F6683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3fd1;
/* rgb */ color: rgb(91, 63, 209);
/* oklch */ color: oklch(49.2% 0.212 284.3);
Tailwind
colors: {
  custom: {
    50: '#9577e0',
    500: '#5b3fd1',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd1;
$custom-light: #9577e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd1",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 209
  },
  "hsl": {
    "h": 251.507,
    "s": 61.345,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49172,
    "c": 0.21151,
    "h": 284.3
  },
  "luminance": 0.10383
}

Semantic roles & 50–950 ramp

primary
#5B3FD1
secondary
#C9D597
accent
#E443C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5B3FD1

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

Preview Lab → · Contrast checker → · Palette generator →

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