#5A3CCE#5A3CCE

#5A3CCE is a mid, highly saturated violet. Relative luminance 0.099; OKLCH L 48.4% C 0.211 H 284.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5A3CCE
RGBrgb(90, 60, 206)
HSLhsl(252, 60%, 52%)
HSVhsv(252, 71%, 81%)
CMYKcmyk(56.3%, 70.9%, 0%, 19.2%)
CIE-LABlab(37.59, 50.55, -71.01)
CIE-LCHlch(37.59, 87.17, 305.44°)
OKLaboklab(48.41% 0.0537 -0.2044)
OKLCHoklch(48.41% 0.211 284.7)
XYZxyz(16.9695, 9.8606, 59.3896)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CCE #B0CE3C
analogous
#3C67CE #5A3CCE #A33CCE
triadic
#5A3CCE #CE5A3C #3CCE5A
tetradic
#5A3CCE #CE3C67 #B0CE3C #3CCEA3
square
#5A3CCE #CE3C67 #B0CE3C #3CCEA3
split-complementary
#5A3CCE #CEA33C #67CE3C
monochromatic
#2E1D73 #4229A4 #5A3CCE #836DDA #AD9EE7

Accessibility & contrast

On white

7.06
#5A3CCE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5A3CCE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CCE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CCE#FFFFFF#000000##FFFFFF
##5A3CCE1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3cce;
/* rgb */ color: rgb(90, 60, 206);
/* oklch */ color: oklch(48.4% 0.211 284.7);
Tailwind
colors: {
  custom: {
    50: '#9475de',
    500: '#5a3cce',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cce;
$custom-light: #9475de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cce",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 206
  },
  "hsl": {
    "h": 252.329,
    "s": 59.836,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48408,
    "c": 0.21132,
    "h": 284.7
  },
  "luminance": 0.09862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A3CCE

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

Preview Lab → · Contrast checker → · Palette generator →

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