#5A3BC2#5A3BC2

#5A3BC2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 47.2% C 0.198 H 286.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5A3BC2
RGBrgb(90, 59, 194)
HSLhsl(254, 53%, 50%)
HSVhsv(254, 70%, 76%)
CMYKcmyk(53.6%, 69.6%, 0%, 23.9%)
CIE-LABlab(36.36, 47.58, -66.04)
CIE-LCHlch(36.36, 81.40, 305.77°)
OKLaboklab(47.21% 0.0568 -0.1898)
OKLCHoklch(47.21% 0.198 286.7)
XYZxyz(15.5151, 9.1958, 51.9859)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BC2 #A3C23B
analogous
#3B5FC2 #5A3BC2 #9E3BC2
triadic
#5A3BC2 #C25A3B #3BC25A
tetradic
#5A3BC2 #C23B5F #A3C23B #3BC29E
square
#5A3BC2 #C23B5F #A3C23B #3BC29E
split-complementary
#5A3BC2 #C29E3B #5FC23B
monochromatic
#2E1E64 #442D93 #5A3BC2 #8169D1 #A898E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A3BC2#FFFFFF#000000##FFFFFF
##5A3BC21.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)
#0059C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#2F5E7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3bc2;
/* rgb */ color: rgb(90, 59, 194);
/* oklch */ color: oklch(47.2% 0.198 286.7);
Tailwind
colors: {
  custom: {
    50: '#9373d5',
    500: '#5a3bc2',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bc2;
$custom-light: #9373d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bc2",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 194
  },
  "hsl": {
    "h": 253.778,
    "s": 53.36,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4721,
    "c": 0.19813,
    "h": 286.7
  },
  "luminance": 0.09197
}

Semantic roles & 50–950 ramp

primary
#5A3BC2
secondary
#BDCB8E
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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