#5B3EC7#5B3EC7

#5B3EC7 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.2% C 0.201 H 285.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5B3EC7
RGBrgb(91, 62, 199)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 69%, 78%)
CMYKcmyk(54.3%, 68.8%, 0%, 22%)
CIE-LABlab(37.47, 47.58, -67.15)
CIE-LCHlch(37.47, 82.29, 305.32°)
OKLaboklab(48.16% 0.0547 -0.193)
OKLCHoklch(48.16% 0.201 285.8)
XYZxyz(16.3427, 9.7920, 55.0507)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EC7 #AAC73E
analogous
#3E65C7 #5B3EC7 #9F3EC7
triadic
#5B3EC7 #C75B3E #3EC75B
tetradic
#5B3EC7 #C73E65 #AAC73E #3EC79F
square
#5B3EC7 #C73E65 #AAC73E #3EC79F
split-complementary
#5B3EC7 #C79F3E #65C73E
monochromatic
#2F1F6B #442D9B #5B3EC7 #836DD5 #AC9DE3

Accessibility & contrast

On white

7.10
#5B3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5B3EC7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EC7
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EC7#FFFFFF#000000##FFFFFF
##5B3EC71.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0054C4
Tritanopia (blue-blind)
#2C627E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3ec7;
/* rgb */ color: rgb(91, 62, 199);
/* oklch */ color: oklch(48.2% 0.201 285.8);
Tailwind
colors: {
  custom: {
    50: '#9476d9',
    500: '#5b3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ec7;
$custom-light: #9476d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ec7",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 252.701,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48156,
    "c": 0.20063,
    "h": 285.8
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#5B3EC7
secondary
#C2CF92
accent
#DE49BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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