#5B3FD3#5B3FD3

#5B3FD3 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.214 H 284.0°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5B3FD3
RGBrgb(91, 63, 211)
HSLhsl(251, 63%, 54%)
HSVhsv(251, 70%, 83%)
CMYKcmyk(56.9%, 70.1%, 0%, 17.3%)
CIE-LABlab(38.69, 50.57, -72.09)
CIE-LCHlch(38.69, 88.06, 305.05°)
OKLaboklab(49.35% 0.0517 -0.2075)
OKLCHoklch(49.35% 0.214 284)
XYZxyz(17.8462, 10.4812, 62.6981)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3FD3 #B7D33F
analogous
#3F6DD3 #5B3FD3 #A53FD3
triadic
#5B3FD3 #D35B3F #3FD35B
tetradic
#5B3FD3 #D33F6D #B7D33F #3FD3A5
square
#5B3FD3 #D33F6D #B7D33F #3FD3A5
split-complementary
#5B3FD3 #D3A53F #6DD33F
monochromatic
#2E1C7B #4128AD #5B3FD3 #8671DE #B0A3EA

Accessibility & contrast

On white

6.78
#5B3FD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5B3FD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3FD3
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3FD3#FFFFFF#000000##FFFFFF
##5B3FD31.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0056D0
Tritanopia (blue-blind)
#1B6685
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b3fd3;
/* rgb */ color: rgb(91, 63, 211);
/* oklch */ color: oklch(49.3% 0.214 284.0);
Tailwind
colors: {
  custom: {
    50: '#9677e2',
    500: '#5b3fd3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3fd3;
$custom-light: #9677e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3fd3",
  "rgb": {
    "r": 91,
    "g": 63,
    "b": 211
  },
  "hsl": {
    "h": 251.351,
    "s": 62.712,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49349,
    "c": 0.21389,
    "h": 284
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#5B3FD3
secondary
#CBD797
accent
#E642C7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0915
muted
#7E7B84

Preview Lab

Preview with #5B3FD3

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

Preview Lab → · Contrast checker → · Palette generator →

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