#5A3CED#5A3CED

#5A3CED is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.247 H 280.9°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5A3CED
RGBrgb(90, 60, 237)
HSLhsl(250, 83%, 58%)
HSVhsv(250, 75%, 93%)
CMYKcmyk(62%, 74.7%, 0%, 7.1%)
CIE-LABlab(40.44, 59.54, -84.07)
CIE-LCHlch(40.44, 103.02, 305.31°)
OKLaboklab(51.29% 0.0469 -0.2426)
OKLCHoklch(51.29% 0.247 280.9)
XYZxyz(21.1135, 11.5182, 81.2150)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3CED #CFED3C
analogous
#3C77ED #5A3CED #B23CED
triadic
#5A3CED #ED5A3C #3CED5A
tetradic
#5A3CED #ED3C77 #CFED3C #3CEDB2
square
#5A3CED #ED3C77 #CFED3C #3CEDB2
split-complementary
#5A3CED #EDB23C #77ED3C
monochromatic
#270FA0 #3514D8 #5A3CED #8974F2 #B9ACF7

Accessibility & contrast

On white

6.36
#5A3CED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5A3CED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3CED
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3CED#FFFFFF#000000##FFFFFF
##5A3CED1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065F2
Deuteranopia (green-blind)
#0059EA
Tritanopia (blue-blind)
#006F92
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a3ced;
/* rgb */ color: rgb(90, 60, 237);
/* oklch */ color: oklch(51.3% 0.247 280.9);
Tailwind
colors: {
  custom: {
    50: '#9a76f4',
    500: '#5a3ced',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ced;
$custom-light: #9a76f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ced",
  "rgb": {
    "r": 90,
    "g": 60,
    "b": 237
  },
  "hsl": {
    "h": 250.169,
    "s": 83.099,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51285,
    "c": 0.24705,
    "h": 280.9
  },
  "luminance": 0.1152
}

Semantic roles & 50–950 ramp

primary
#5A3CED
secondary
#DAE69F
accent
#F92ED7
background
#FAF7FF
surface
#F4EDFF
border
#CEC8D7
text
#100917
muted
#7F7B85

Preview Lab

Preview with #5A3CED

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

Preview Lab → · Contrast checker → · Palette generator →

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