#5B3FD7#5B3FD7

#5B3FD7 is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.7% C 0.219 H 283.5°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#5B3FD7
RGBrgb(91, 63, 215)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 71%, 84%)
CMYKcmyk(57.7%, 70.7%, 0%, 15.7%)
CIE-LABlab(39.04, 51.74, -73.82)
CIE-LCHlch(39.04, 90.15, 305.03°)
OKLaboklab(49.71% 0.051 -0.2126)
OKLCHoklch(49.71% 0.219 283.5)
XYZxyz(18.3539, 10.6843, 65.3719)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD7 #BBD73F
analogous
#3F6FD7 #5B3FD7 #A73FD7
triadic
#5B3FD7 #D75B3F #3FD75B
tetradic
#5B3FD7 #D73F6F #BBD73F #3FD7A7
square
#5B3FD7 #D73F6F #BBD73F #3FD7A7
split-complementary
#5B3FD7 #D7A73F #6FD73F
monochromatic
#2E1B81 #4025B3 #5B3FD7 #8672E2 #B2A4EC

Accessibility & contrast

On white

6.69
#5B3FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5B3FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD7
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD7#FFFFFF#000000##FFFFFF
##5B3FD71.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#126887
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b3fd7;
/* rgb */ color: rgb(91, 63, 215);
/* oklch */ color: oklch(49.7% 0.219 283.5);
Tailwind
colors: {
  custom: {
    50: '#9677e5',
    500: '#5b3fd7',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd7;
$custom-light: #9677e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd7",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 215
  },
  "hsl": {
    "h": 251.053,
    "s": 65.517,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49706,
    "c": 0.21862,
    "h": 283.5
  },
  "luminance": 0.10685
}

Semantic roles & 50–950 ramp

primary
#5B3FD7
secondary
#CDD999
accent
#E83FC9
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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