#5B3ECD#5B3ECD

#5B3ECD is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.7% C 0.208 H 285.0°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#5B3ECD
RGBrgb(91, 62, 205)
HSLhsl(252, 59%, 52%)
HSVhsv(252, 70%, 80%)
CMYKcmyk(55.6%, 69.8%, 0%, 19.6%)
CIE-LABlab(37.98, 49.34, -69.79)
CIE-LCHlch(37.98, 85.47, 305.26°)
OKLaboklab(48.68% 0.0536 -0.2008)
OKLCHoklch(48.68% 0.208 285)
XYZxyz(17.0531, 10.0762, 58.7921)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ECD #B0CD3E
analogous
#3E68CD #5B3ECD #A33ECD
triadic
#5B3ECD #CD5B3E #3ECD5B
tetradic
#5B3ECD #CD3E68 #B0CD3E #3ECDA3
square
#5B3ECD #CD3E68 #B0CD3E #3ECDA3
split-complementary
#5B3ECD #CDA33E #68CD3E
monochromatic
#2F1E73 #432AA3 #5B3ECD #846FDA #AE9FE6

Accessibility & contrast

On white

6.96
#5B3ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B3ECD
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ECD#FFFFFF#000000##FFFFFF
##5B3ECD1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#256481
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b3ecd;
/* rgb */ color: rgb(91, 62, 205);
/* oklch */ color: oklch(48.7% 0.208 285.0);
Tailwind
colors: {
  custom: {
    50: '#9576dd',
    500: '#5b3ecd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ecd;
$custom-light: #9576dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ecd",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 205
  },
  "hsl": {
    "h": 252.168,
    "s": 58.848,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4868,
    "c": 0.20784,
    "h": 285
  },
  "luminance": 0.10077
}

Semantic roles & 50–950 ramp

primary
#5B3ECD
secondary
#C6D394
accent
#E246C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B3ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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