#5B3AC3#5B3AC3

#5B3AC3 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.3% C 0.200 H 287.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5B3AC3
RGBrgb(91, 58, 195)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 76%)
CMYKcmyk(53.3%, 70.3%, 0%, 23.5%)
CIE-LABlab(36.35, 48.56, -66.64)
CIE-LCHlch(36.35, 82.46, 306.08°)
OKLaboklab(47.25% 0.0589 -0.1915)
OKLCHoklch(47.25% 0.2 287.1)
XYZxyz(15.6748, 9.1896, 52.5670)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AC3 #A2C33A
analogous
#3A5DC3 #5B3AC3 #A03AC3
triadic
#5B3AC3 #C35B3A #3AC35B
tetradic
#5B3AC3 #C33A5D #A2C33A #3AC3A0
square
#5B3AC3 #C33A5D #A2C33A #3AC3A0
split-complementary
#5B3AC3 #C3A03A #5DC33A
monochromatic
#2F1E65 #452C94 #5B3AC3 #8268D2 #A997E0

Accessibility & contrast

On white

7.40
#5B3AC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B3AC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AC3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AC3#FFFFFF#000000##FFFFFF
##5B3AC31.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#315E7A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3ac3;
/* rgb */ color: rgb(91, 58, 195);
/* oklch */ color: oklch(47.3% 0.200 287.1);
Tailwind
colors: {
  custom: {
    50: '#9373d6',
    500: '#5b3ac3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ac3;
$custom-light: #9373d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ac3",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 195
  },
  "hsl": {
    "h": 254.453,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47251,
    "c": 0.2004,
    "h": 287.1
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#5B3AC3
secondary
#BDCC8D
accent
#DE4ABA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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