#5A3CC8#5A3CC8

#5A3CC8 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 47.9% C 0.204 H 285.6°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5A3CC8
RGBrgb(90, 60, 200)
HSLhsl(253, 56%, 51%)
HSVhsv(253, 70%, 78%)
CMYKcmyk(55%, 70%, 0%, 21.6%)
CIE-LABlab(37.07, 48.79, -68.38)
CIE-LCHlch(37.07, 84.01, 305.51°)
OKLaboklab(47.88% 0.0548 -0.1967)
OKLCHoklch(47.88% 0.204 285.6)
XYZxyz(16.2545, 9.5746, 55.6240)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CC8 #AAC83C
analogous
#3C64C8 #5A3CC8 #A03CC8
triadic
#5A3CC8 #C85A3C #3CC85A
tetradic
#5A3CC8 #C83C64 #AAC83C #3CC8A0
square
#5A3CC8 #C83C64 #AAC83C #3CC8A0
split-complementary
#5A3CC8 #C8A03C #64C83C
monochromatic
#2F1E6B #442C9B #5A3CC8 #826CD5 #AB9BE3

Accessibility & contrast

On white

7.20
#5A3CC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5A3CC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CC8
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CC8#FFFFFF#000000##FFFFFF
##5A3CC81.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#28617E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a3cc8;
/* rgb */ color: rgb(90, 60, 200);
/* oklch */ color: oklch(47.9% 0.204 285.6);
Tailwind
colors: {
  custom: {
    50: '#9374da',
    500: '#5a3cc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cc8;
$custom-light: #9374da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cc8",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 200
  },
  "hsl": {
    "h": 252.857,
    "s": 56,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47875,
    "c": 0.20419,
    "h": 285.6
  },
  "luminance": 0.09576
}

Semantic roles & 50–950 ramp

primary
#5A3CC8
secondary
#C2CF91
accent
#DF49BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A3CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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