#5A3CC4#5A3CC4

#5A3CC4 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.5% C 0.199 H 286.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5A3CC4
RGBrgb(90, 60, 196)
HSLhsl(253, 54%, 50%)
HSVhsv(253, 69%, 77%)
CMYKcmyk(54.1%, 69.4%, 0%, 23.1%)
CIE-LABlab(36.72, 47.62, -66.61)
CIE-LCHlch(36.72, 81.89, 305.56°)
OKLaboklab(47.53% 0.0556 -0.1915)
OKLCHoklch(47.53% 0.199 286.2)
XYZxyz(15.7931, 9.3900, 53.1941)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CC4 #A6C43C
analogous
#3C62C4 #5A3CC4 #9E3CC4
triadic
#5A3CC4 #C45A3C #3CC45A
tetradic
#5A3CC4 #C43C62 #A6C43C #3CC49E
square
#5A3CC4 #C43C62 #A6C43C #3CC49E
split-complementary
#5A3CC4 #C49E3C #62C43C
monochromatic
#2F1F67 #442D96 #5A3CC4 #826BD2 #AA9AE0

Accessibility & contrast

On white

7.30
#5A3CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5A3CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A3CC4
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CC4#FFFFFF#000000##FFFFFF
##5A3CC41.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#2D5F7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a3cc4;
/* rgb */ color: rgb(90, 60, 196);
/* oklch */ color: oklch(47.5% 0.199 286.2);
Tailwind
colors: {
  custom: {
    50: '#9374d7',
    500: '#5a3cc4',
    950: '#000000',
  },
}
SCSS
$custom: #5a3cc4;
$custom-light: #9374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3cc4",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 196
  },
  "hsl": {
    "h": 253.235,
    "s": 53.543,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47525,
    "c": 0.19939,
    "h": 286.2
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

primary
#5A3CC4
secondary
#BFCC90
accent
#DD4BBD
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A3CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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