#5A3BCA#5A3BCA

#5A3BCA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 47.9% C 0.208 H 285.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5A3BCA
RGBrgb(90, 59, 202)
HSLhsl(253, 57%, 51%)
HSVhsv(253, 71%, 79%)
CMYKcmyk(55.4%, 70.8%, 0%, 20.8%)
CIE-LABlab(37.05, 49.91, -69.58)
CIE-LCHlch(37.05, 85.63, 305.65°)
OKLaboklab(47.92% 0.0553 -0.2002)
OKLCHoklch(47.92% 0.208 285.4)
XYZxyz(16.4379, 9.5649, 56.8457)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCA #ABCA3B
analogous
#3B63CA #5A3BCA #A13BCA
triadic
#5A3BCA #CA5A3B #3BCA5A
tetradic
#5A3BCA #CA3B63 #ABCA3B #3BCAA1
square
#5A3BCA #CA3B63 #ABCA3B #3BCAA1
split-complementary
#5A3BCA #CAA13B #63CA3B
monochromatic
#2F1E6D #432B9D #5A3BCA #836BD7 #AB9BE4

Accessibility & contrast

On white

7.21
#5A3BCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5A3BCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BCA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BCA#FFFFFF#000000##FFFFFF
##5A3BCA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3bca;
/* rgb */ color: rgb(90, 59, 202);
/* oklch */ color: oklch(47.9% 0.208 285.4);
Tailwind
colors: {
  custom: {
    50: '#9474db',
    500: '#5a3bca',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bca;
$custom-light: #9474db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bca",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 202
  },
  "hsl": {
    "h": 253.007,
    "s": 57.43,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47916,
    "c": 0.20767,
    "h": 285.4
  },
  "luminance": 0.09566
}

Semantic roles & 50–950 ramp

primary
#5A3BCA
secondary
#C2D091
accent
#E147BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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