#5B3DD9#5B3DD9

#5B3DD9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.6% C 0.223 H 283.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5B3DD9
RGBrgb(91, 61, 217)
HSLhsl(252, 67%, 55%)
HSVhsv(252, 72%, 85%)
CMYKcmyk(58.1%, 71.9%, 0%, 14.9%)
CIE-LABlab(38.85, 53.38, -75.29)
CIE-LCHlch(38.85, 92.29, 305.33°)
OKLaboklab(49.62% 0.0521 -0.2169)
OKLCHoklch(49.62% 0.223 283.5)
XYZxyz(18.5037, 10.5702, 66.6974)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DD9 #BBD93D
analogous
#3D6DD9 #5B3DD9 #A93DD9
triadic
#5B3DD9 #D95B3D #3DD95B
tetradic
#5B3DD9 #D93D6D #BBD93D #3DD9A9
square
#5B3DD9 #D93D6D #BBD93D #3DD9A9
split-complementary
#5B3DD9 #D9A93D #6DD93D
monochromatic
#2E1982 #4024B5 #5B3DD9 #8670E3 #B2A3ED

Accessibility & contrast

On white

6.74
#5B3DD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5B3DD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3DD9
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DD9#FFFFFF#000000##FFFFFF
##5B3DD91.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0056D6
Tritanopia (blue-blind)
#0C6887
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3dd9;
/* rgb */ color: rgb(91, 61, 217);
/* oklch */ color: oklch(49.6% 0.223 283.5);
Tailwind
colors: {
  custom: {
    50: '#9776e6',
    500: '#5b3dd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dd9;
$custom-light: #9776e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dd9",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 217
  },
  "hsl": {
    "h": 251.538,
    "s": 67.241,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.22306,
    "h": 283.5
  },
  "luminance": 0.10571
}

Semantic roles & 50–950 ramp

primary
#5B3DD9
secondary
#CDDA98
accent
#EA3EC9
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B3DD9

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

Preview Lab → · Contrast checker → · Palette generator →

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