#5A3BCD#5A3BCD

#5A3BCD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.2% C 0.211 H 285.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5A3BCD
RGBrgb(90, 59, 205)
HSLhsl(253, 59%, 52%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(56.1%, 71.2%, 0%, 19.6%)
CIE-LABlab(37.31, 50.78, -70.89)
CIE-LCHlch(37.31, 87.20, 305.62°)
OKLaboklab(48.18% 0.0547 -0.204)
OKLCHoklch(48.18% 0.211 285)
XYZxyz(16.7965, 9.7084, 58.7346)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3BCD #AECD3B
analogous
#3B65CD #5A3BCD #A33BCD
triadic
#5A3BCD #CD5A3B #3BCD5A
tetradic
#5A3BCD #CD3B65 #AECD3B #3BCDA3
square
#5A3BCD #CD3B65 #AECD3B #3BCDA3
split-complementary
#5A3BCD #CDA33B #65CD3B
monochromatic
#2F1D71 #4329A2 #5A3BCD #836CD9 #AC9DE6

Accessibility & contrast

On white

7.14
#5A3BCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5A3BCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3BCD
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3BCD#FFFFFF#000000##FFFFFF
##5A3BCD1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#226280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3bcd;
/* rgb */ color: rgb(90, 59, 205);
/* oklch */ color: oklch(48.2% 0.211 285.0);
Tailwind
colors: {
  custom: {
    50: '#9474dd',
    500: '#5a3bcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3bcd;
$custom-light: #9474dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3bcd",
  "rgb": {
    "r": 90,
    "g": 59,
    "b": 205
  },
  "hsl": {
    "h": 252.74,
    "s": 59.35,
    "l": 51.765
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.21122,
    "h": 285
  },
  "luminance": 0.09709
}

Semantic roles & 50–950 ramp

primary
#5A3BCD
secondary
#C4D292
accent
#E345C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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