#5B3ACA#5B3ACA

#5B3ACA is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.209 H 286.0°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5B3ACA
RGBrgb(91, 58, 202)
HSLhsl(254, 58%, 51%)
HSVhsv(254, 71%, 79%)
CMYKcmyk(55%, 71.3%, 0%, 20.8%)
CIE-LABlab(36.95, 50.58, -69.73)
CIE-LCHlch(36.95, 86.15, 305.96°)
OKLaboklab(47.87% 0.0575 -0.2006)
OKLCHoklch(47.87% 0.209 286)
XYZxyz(16.4849, 9.5136, 56.8333)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ACA #A9CA3A
analogous
#3A61CA #5B3ACA #A33ACA
triadic
#5B3ACA #CA5B3A #3ACA5B
tetradic
#5B3ACA #CA3A61 #A9CA3A #3ACAA3
square
#5B3ACA #CA3A61 #A9CA3A #3ACAA3
split-complementary
#5B3ACA #CAA33A #61CA3A
monochromatic
#2F1D6C #442A9D #5B3ACA #836AD7 #AB9AE4

Accessibility & contrast

On white

7.23
#5B3ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B3ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ACA
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ACA#FFFFFF#000000##FFFFFF
##5B3ACA1.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#29617E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3aca;
/* rgb */ color: rgb(91, 58, 202);
/* oklch */ color: oklch(47.9% 0.209 286.0);
Tailwind
colors: {
  custom: {
    50: '#9473db',
    500: '#5b3aca',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aca;
$custom-light: #9473db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aca",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 202
  },
  "hsl": {
    "h": 253.75,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47871,
    "c": 0.20867,
    "h": 286
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

primary
#5B3ACA
secondary
#C1D090
accent
#E147BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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