#5A3CCD#5A3CCD

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

Color values

HEX#5A3CCD
RGBrgb(90, 60, 205)
HSLhsl(252, 59%, 52%)
HSVhsv(252, 71%, 80%)
CMYKcmyk(56.1%, 70.7%, 0%, 19.6%)
CIE-LABlab(37.50, 50.26, -70.58)
CIE-LCHlch(37.50, 86.64, 305.45°)
OKLaboklab(48.32% 0.0539 -0.2031)
OKLCHoklch(48.32% 0.21 284.9)
XYZxyz(16.8484, 9.8122, 58.7519)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CCD #AFCD3C
analogous
#3C67CD #5A3CCD #A33CCD
triadic
#5A3CCD #CD5A3C #3CCD5A
tetradic
#5A3CCD #CD3C67 #AFCD3C #3CCDA3
square
#5A3CCD #CD3C67 #AFCD3C #3CCDA3
split-complementary
#5A3CCD #CDA33C #67CD3C
monochromatic
#2F1D71 #432AA2 #5A3CCD #836DD9 #AC9DE6

Accessibility & contrast

On white

7.09
#5A3CCD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5A3CCD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CCD
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CCD#FFFFFF#000000##FFFFFF
##5A3CCD1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a3ccd;
/* rgb */ color: rgb(90, 60, 205);
/* oklch */ color: oklch(48.3% 0.210 284.9);
Tailwind
colors: {
  custom: {
    50: '#9474dd',
    500: '#5a3ccd',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ccd;
$custom-light: #9474dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ccd",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 205
  },
  "hsl": {
    "h": 252.414,
    "s": 59.184,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.21014,
    "h": 284.9
  },
  "luminance": 0.09813
}

Semantic roles & 50–950 ramp

primary
#5A3CCD
secondary
#C5D293
accent
#E245C2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3CCD

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

Preview Lab → · Contrast checker → · Palette generator →

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