#5A3CCC#5A3CCC

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

Color values

HEX#5A3CCC
RGBrgb(90, 60, 204)
HSLhsl(253, 59%, 52%)
HSVhsv(253, 71%, 80%)
CMYKcmyk(55.9%, 70.6%, 0%, 20%)
CIE-LABlab(37.42, 49.96, -70.14)
CIE-LCHlch(37.42, 86.12, 305.46°)
OKLaboklab(48.23% 0.0541 -0.2018)
OKLCHoklch(48.23% 0.209 285)
XYZxyz(16.7281, 9.7640, 58.1182)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CCC #AECC3C
analogous
#3C66CC #5A3CCC #A23CCC
triadic
#5A3CCC #CC5A3C #3CCC5A
tetradic
#5A3CCC #CC3C66 #AECC3C #3CCCA2
square
#5A3CCC #CC3C66 #AECC3C #3CCCA2
split-complementary
#5A3CCC #CCA23C #66CC3C
monochromatic
#2F1D70 #432AA1 #5A3CCC #836DD9 #AC9DE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A3CCC#FFFFFF#000000##FFFFFF
##5A3CCC1.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)
#005CD0
Deuteranopia (green-blind)
#0054C9
Tritanopia (blue-blind)
#236280
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5a3ccc;
/* rgb */ color: rgb(90, 60, 204);
/* oklch */ color: oklch(48.2% 0.209 285.0);
Tailwind
colors: {
  custom: {
    50: '#9474dd',
    500: '#5a3ccc',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ccc;
$custom-light: #9474dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ccc",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 204
  },
  "hsl": {
    "h": 252.5,
    "s": 58.537,
    "l": 51.765
  },
  "oklch": {
    "l": 0.4823,
    "c": 0.20896,
    "h": 285
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#5A3CCC
secondary
#C4D192
accent
#E246C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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