#5B3ACC#5B3ACC

#5B3ACC is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.211 H 285.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5B3ACC
RGBrgb(91, 58, 204)
HSLhsl(254, 59%, 51%)
HSVhsv(254, 72%, 80%)
CMYKcmyk(55.4%, 71.6%, 0%, 20%)
CIE-LABlab(37.13, 51.16, -70.60)
CIE-LCHlch(37.13, 87.19, 305.93°)
OKLaboklab(48.05% 0.0571 -0.2031)
OKLCHoklch(48.05% 0.211 285.7)
XYZxyz(16.7232, 9.6089, 58.0885)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ACC #ABCC3A
analogous
#3A62CC #5B3ACC #A43ACC
triadic
#5B3ACC #CC5B3A #3ACC5B
tetradic
#5B3ACC #CC3A62 #ABCC3A #3ACCA4
square
#5B3ACC #CC3A62 #ABCC3A #3ACCA4
split-complementary
#5B3ACC #CCA43A #62CC3A
monochromatic
#2F1D6F #4429A0 #5B3ACC #836BD9 #AC9BE5

Accessibility & contrast

On white

7.19
#5B3ACC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B3ACC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ACC
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ACC#FFFFFF#000000##FFFFFF
##5B3ACC1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#27617F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3acc;
/* rgb */ color: rgb(91, 58, 204);
/* oklch */ color: oklch(48.0% 0.211 285.7);
Tailwind
colors: {
  custom: {
    50: '#9573dd',
    500: '#5b3acc',
    950: '#000000',
  },
}
SCSS
$custom: #5b3acc;
$custom-light: #9573dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3acc",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 204
  },
  "hsl": {
    "h": 253.562,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4805,
    "c": 0.21102,
    "h": 285.7
  },
  "luminance": 0.0961
}

Semantic roles & 50–950 ramp

primary
#5B3ACC
secondary
#C3D191
accent
#E246BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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