#5A3DCA#5A3DCA

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

Color values

HEX#5A3DCA
RGBrgb(90, 61, 202)
HSLhsl(252, 57%, 52%)
HSVhsv(252, 70%, 79%)
CMYKcmyk(55.4%, 69.8%, 0%, 20.8%)
CIE-LABlab(37.43, 48.84, -68.95)
CIE-LCHlch(37.43, 84.49, 305.31°)
OKLaboklab(48.19% 0.0536 -0.1983)
OKLCHoklch(48.19% 0.205 285.1)
XYZxyz(16.5426, 9.7745, 56.8806)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3DCA #ADCA3D
analogous
#3D67CA #5A3DCA #A03DCA
triadic
#5A3DCA #CA5A3D #3DCA5A
tetradic
#5A3DCA #CA3D67 #ADCA3D #3DCAA0
square
#5A3DCA #CA3D67 #ADCA3D #3DCAA0
split-complementary
#5A3DCA #CAA03D #67CA3D
monochromatic
#2F1E6E #432B9F #5A3DCA #836DD7 #AC9DE4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A3DCA#FFFFFF#000000##FFFFFF
##5A3DCA1.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)
#005CCE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#26627F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3dca;
/* rgb */ color: rgb(90, 61, 202);
/* oklch */ color: oklch(48.2% 0.205 285.1);
Tailwind
colors: {
  custom: {
    50: '#9475db',
    500: '#5a3dca',
    950: '#000000',
  },
}
SCSS
$custom: #5a3dca;
$custom-light: #9475db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3dca",
  "rgb": {
    "r": 90,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 252.34,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4819,
    "c": 0.20546,
    "h": 285.1
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#5A3DCA
secondary
#C4D092
accent
#E047C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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