#5A3CE0#5A3CE0

#5A3CE0 is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.1% C 0.232 H 282.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5A3CE0
RGBrgb(90, 60, 224)
HSLhsl(251, 73%, 56%)
HSVhsv(251, 73%, 88%)
CMYKcmyk(59.8%, 73.2%, 0%, 12.2%)
CIE-LABlab(39.22, 55.79, -78.69)
CIE-LCHlch(39.22, 96.46, 305.33°)
OKLaboklab(50.06% 0.0499 -0.2269)
OKLCHoklch(50.06% 0.232 282.4)
XYZxyz(19.2827, 10.7859, 71.5723)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CE0 #C2E03C
analogous
#3C70E0 #5A3CE0 #AC3CE0
triadic
#5A3CE0 #E05A3C #3CE05A
tetradic
#5A3CE0 #E03C70 #C2E03C #3CE0AC
square
#5A3CE0 #E03C70 #C2E03C #3CE0AC
split-complementary
#5A3CE0 #E0AC3C #70E03C
monochromatic
#2C168B #3C1FC0 #5A3CE0 #8771E8 #B3A6F1

Accessibility & contrast

On white

6.65
#5A3CE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5A3CE0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3CE0
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CE0#FFFFFF#000000##FFFFFF
##5A3CE01.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E5
Deuteranopia (green-blind)
#0057DD
Tritanopia (blue-blind)
#006A8B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a3ce0;
/* rgb */ color: rgb(90, 60, 224);
/* oklch */ color: oklch(50.1% 0.232 282.4);
Tailwind
colors: {
  custom: {
    50: '#9775eb',
    500: '#5a3ce0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ce0;
$custom-light: #9775eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ce0",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 224
  },
  "hsl": {
    "h": 250.976,
    "s": 72.566,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50056,
    "c": 0.23229,
    "h": 282.4
  },
  "luminance": 0.10787
}

Semantic roles & 50–950 ramp

primary
#5A3CE0
secondary
#D2DE9A
accent
#EF39CE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3CE0

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

Preview Lab → · Contrast checker → · Palette generator →

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