#5B3AC8#5B3AC8

#5B3AC8 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.206 H 286.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B3AC8
RGBrgb(91, 58, 200)
HSLhsl(254, 56%, 51%)
HSVhsv(254, 71%, 78%)
CMYKcmyk(54.5%, 71%, 0%, 21.6%)
CIE-LABlab(36.78, 50.01, -68.85)
CIE-LCHlch(36.78, 85.10, 305.99°)
OKLaboklab(47.69% 0.0579 -0.198)
OKLCHoklch(47.69% 0.206 286.3)
XYZxyz(16.2496, 9.4195, 55.5943)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AC8 #A7C83A
analogous
#3A60C8 #5B3AC8 #A23AC8
triadic
#5B3AC8 #C85B3A #3AC85B
tetradic
#5B3AC8 #C83A60 #A7C83A #3AC8A2
square
#5B3AC8 #C83A60 #A7C83A #3AC8A2
split-complementary
#5B3AC8 #C8A23A #60C83A
monochromatic
#2F1E6A #452B9A #5B3AC8 #836AD5 #AB9AE3

Accessibility & contrast

On white

7.28
#5B3AC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B3AC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AC8
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AC8#FFFFFF#000000##FFFFFF
##5B3AC81.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#2C607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3ac8;
/* rgb */ color: rgb(91, 58, 200);
/* oklch */ color: oklch(47.7% 0.206 286.3);
Tailwind
colors: {
  custom: {
    50: '#9473da',
    500: '#5b3ac8',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ac8;
$custom-light: #9473da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ac8",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 200
  },
  "hsl": {
    "h": 253.944,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47693,
    "c": 0.20632,
    "h": 286.3
  },
  "luminance": 0.0942
}

Semantic roles & 50–950 ramp

primary
#5B3AC8
secondary
#C0CE8F
accent
#E048BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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