#5B3DD2#5B3DD2

#5B3DD2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.0% C 0.215 H 284.4°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#5B3DD2
RGBrgb(91, 61, 210)
HSLhsl(252, 62%, 53%)
HSVhsv(252, 71%, 82%)
CMYKcmyk(56.7%, 71%, 0%, 17.6%)
CIE-LABlab(38.22, 51.33, -72.29)
CIE-LCHlch(38.22, 88.66, 305.38°)
OKLaboklab(48.99% 0.0535 -0.2081)
OKLCHoklch(48.99% 0.215 284.4)
XYZxyz(17.6124, 10.2137, 62.0036)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DD2 #B4D23D
analogous
#3D69D2 #5B3DD2 #A63DD2
triadic
#5B3DD2 #D25B3D #3DD25B
tetradic
#5B3DD2 #D23D69 #B4D23D #3DD2A6
square
#5B3DD2 #D23D69 #B4D23D #3DD2A6
split-complementary
#5B3DD2 #D2A63D #69D23D
monochromatic
#2F1C79 #4228AA #5B3DD2 #856FDE #AFA0E9

Accessibility & contrast

On white

6.90
#5B3DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B3DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3DD2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DD2#FFFFFF#000000##FFFFFF
##5B3DD21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#1D6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3dd2;
/* rgb */ color: rgb(91, 61, 210);
/* oklch */ color: oklch(49.0% 0.215 284.4);
Tailwind
colors: {
  custom: {
    50: '#9675e1',
    500: '#5b3dd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3dd2;
$custom-light: #9675e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3dd2",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 210
  },
  "hsl": {
    "h": 252.081,
    "s": 62.343,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48988,
    "c": 0.21486,
    "h": 284.4
  },
  "luminance": 0.10215
}

Semantic roles & 50–950 ramp

primary
#5B3DD2
secondary
#C9D695
accent
#E542C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5B3DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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