#5B3ACD#5B3ACD

#5B3ACD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.1% C 0.212 H 285.5°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5B3ACD
RGBrgb(91, 58, 205)
HSLhsl(253, 60%, 52%)
HSVhsv(253, 72%, 80%)
CMYKcmyk(55.6%, 71.7%, 0%, 19.6%)
CIE-LABlab(37.22, 51.45, -71.04)
CIE-LCHlch(37.22, 87.71, 305.91°)
OKLaboklab(48.14% 0.0569 -0.2044)
OKLCHoklch(48.14% 0.212 285.5)
XYZxyz(16.8436, 9.6571, 58.7222)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ACD #ACCD3A
analogous
#3A63CD #5B3ACD #A43ACD
triadic
#5B3ACD #CD5B3A #3ACD5B
tetradic
#5B3ACD #CD3A63 #ACCD3A #3ACDA4
square
#5B3ACD #CD3A63 #ACCD3A #3ACDA4
split-complementary
#5B3ACD #CDA43A #63CD3A
monochromatic
#2F1C70 #4429A1 #5B3ACD #846BD9 #AC9CE6

Accessibility & contrast

On white

7.16
#5B3ACD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5B3ACD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ACD
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ACD#FFFFFF#000000##FFFFFF
##5B3ACD1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#266280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5b3acd;
/* rgb */ color: rgb(91, 58, 205);
/* oklch */ color: oklch(48.1% 0.212 285.5);
Tailwind
colors: {
  custom: {
    50: '#9573dd',
    500: '#5b3acd',
    950: '#000000',
  },
}
SCSS
$custom: #5b3acd;
$custom-light: #9573dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3acd",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 205
  },
  "hsl": {
    "h": 253.469,
    "s": 59.514,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4814,
    "c": 0.2122,
    "h": 285.5
  },
  "luminance": 0.09658
}

Semantic roles & 50–950 ramp

primary
#5B3ACD
secondary
#C3D291
accent
#E345BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3ACD

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

Preview Lab → · Contrast checker → · Palette generator →

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