#5A3CC6#5A3CC6

#5A3CC6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.7% C 0.202 H 285.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5A3CC6
RGBrgb(90, 60, 198)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 70%, 78%)
CMYKcmyk(54.5%, 69.7%, 0%, 22.4%)
CIE-LABlab(36.90, 48.21, -67.50)
CIE-LCHlch(36.90, 82.95, 305.53°)
OKLaboklab(47.7% 0.0552 -0.1941)
OKLCHoklch(47.7% 0.202 285.9)
XYZxyz(16.0223, 9.4817, 54.4010)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CC6 #A8C63C
analogous
#3C63C6 #5A3CC6 #9F3CC6
triadic
#5A3CC6 #C65A3C #3CC65A
tetradic
#5A3CC6 #C63C63 #A8C63C #3CC69F
square
#5A3CC6 #C63C63 #A8C63C #3CC69F
split-complementary
#5A3CC6 #C69F3C #63C63C
monochromatic
#2F1F69 #442D98 #5A3CC6 #826BD4 #AA9BE2

Accessibility & contrast

On white

7.25
#5A3CC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A3CC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CC6
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CC6#FFFFFF#000000##FFFFFF
##5A3CC61.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#2B607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3cc6;
/* rgb */ color: rgb(90, 60, 198);
/* oklch */ color: oklch(47.7% 0.202 285.9);
Tailwind
colors: {
  custom: {
    50: '#9374d8',
    500: '#5a3cc6',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cc6;
$custom-light: #9374d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cc6",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 198
  },
  "hsl": {
    "h": 253.043,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47699,
    "c": 0.2018,
    "h": 285.9
  },
  "luminance": 0.09483
}

Semantic roles & 50–950 ramp

primary
#5A3CC6
secondary
#C0CE90
accent
#DE4ABE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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