#5A3BCE#5A3BCE

#5A3BCE is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.3% C 0.212 H 284.9°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5A3BCE
RGBrgb(90, 59, 206)
HSLhsl(253, 60%, 52%)
HSVhsv(253, 71%, 81%)
CMYKcmyk(56.3%, 71.4%, 0%, 19.2%)
CIE-LABlab(37.40, 51.07, -71.32)
CIE-LCHlch(37.40, 87.72, 305.61°)
OKLaboklab(48.27% 0.0545 -0.2053)
OKLCHoklch(48.27% 0.212 284.9)
XYZxyz(16.9176, 9.7568, 59.3724)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCE #AFCE3B
analogous
#3B66CE #5A3BCE #A43BCE
triadic
#5A3BCE #CE5A3B #3BCE5A
tetradic
#5A3BCE #CE3B66 #AFCE3B #3BCEA4
square
#5A3BCE #CE3B66 #AFCE3B #3BCEA4
split-complementary
#5A3BCE #CEA43B #66CE3B
monochromatic
#2F1D72 #4329A3 #5A3BCE #836CDA #AC9DE6

Accessibility & contrast

On white

7.11
#5A3BCE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5A3BCE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BCE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BCE#FFFFFF#000000##FFFFFF
##5A3BCE1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#206381
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3bce;
/* rgb */ color: rgb(90, 59, 206);
/* oklch */ color: oklch(48.3% 0.212 284.9);
Tailwind
colors: {
  custom: {
    50: '#9474de',
    500: '#5a3bce',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bce;
$custom-light: #9474de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bce",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 206
  },
  "hsl": {
    "h": 252.653,
    "s": 60,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48274,
    "c": 0.2124,
    "h": 284.9
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#5A3BCE
secondary
#C5D392
accent
#E345C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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