#5B3BD4#5B3BD4

#5B3BD4 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.219 H 284.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5B3BD4
RGBrgb(91, 59, 212)
HSLhsl(253, 64%, 53%)
HSVhsv(253, 72%, 83%)
CMYKcmyk(57.1%, 72.2%, 0%, 16.9%)
CIE-LABlab(38.03, 52.96, -73.76)
CIE-LCHlch(38.03, 90.80, 305.68°)
OKLaboklab(48.91% 0.0546 -0.2124)
OKLCHoklch(48.91% 0.219 284.4)
XYZxyz(17.7584, 10.1044, 63.2892)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BD4 #B4D43B
analogous
#3B67D4 #5B3BD4 #A73BD4
triadic
#5B3BD4 #D45B3B #3BD45B
tetradic
#5B3BD4 #D43B67 #B4D43B #3BD4A7
square
#5B3BD4 #D43B67 #B4D43B #3BD4A7
split-complementary
#5B3BD4 #D4A73B #67D43B
monochromatic
#2F1B7A #4226AC #5B3BD4 #856DDF #AF9FEA

Accessibility & contrast

On white

6.95
#5B3BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5B3BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3BD4
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BD4#FFFFFF#000000##FFFFFF
##5B3BD41.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0055D1
Tritanopia (blue-blind)
#1A6584
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3bd4;
/* rgb */ color: rgb(91, 59, 212);
/* oklch */ color: oklch(48.9% 0.219 284.4);
Tailwind
colors: {
  custom: {
    50: '#9674e2',
    500: '#5b3bd4',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bd4;
$custom-light: #9674e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bd4",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 252.549,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48905,
    "c": 0.21931,
    "h": 284.4
  },
  "luminance": 0.10106
}

Semantic roles & 50–950 ramp

primary
#5B3BD4
secondary
#C9D694
accent
#E741C4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5B3BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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