#5B3FD9#5B3FD9

#5B3FD9 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.9% C 0.221 H 283.2°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5B3FD9
RGBrgb(91, 63, 217)
HSLhsl(251, 67%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(58.1%, 71%, 0%, 14.9%)
CIE-LABlab(39.22, 52.33, -74.68)
CIE-LCHlch(39.22, 91.19, 305.02°)
OKLaboklab(49.89% 0.0506 -0.2151)
OKLCHoklch(49.89% 0.221 283.2)
XYZxyz(18.6124, 10.7877, 66.7336)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD9 #BDD93F
analogous
#3F70D9 #5B3FD9 #A83FD9
triadic
#5B3FD9 #D95B3F #3FD95B
tetradic
#5B3FD9 #D93F70 #BDD93F #3FD9A8
square
#5B3FD9 #D93F70 #BDD93F #3FD9A8
split-complementary
#5B3FD9 #D9A83F #70D93F
monochromatic
#2D1A84 #3F24B7 #5B3FD9 #8772E3 #B2A5ED

Accessibility & contrast

On white

6.65
#5B3FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5B3FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD9
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD9#FFFFFF#000000##FFFFFF
##5B3FD91.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0057D6
Tritanopia (blue-blind)
#0B6988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b3fd9;
/* rgb */ color: rgb(91, 63, 217);
/* oklch */ color: oklch(49.9% 0.221 283.2);
Tailwind
colors: {
  custom: {
    50: '#9677e6',
    500: '#5b3fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd9;
$custom-light: #9677e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd9",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 250.909,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49886,
    "c": 0.22098,
    "h": 283.2
  },
  "luminance": 0.10789
}

Semantic roles & 50–950 ramp

primary
#5B3FD9
secondary
#CFDA9A
accent
#EA3ECB
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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