#5A3EDA#5A3EDA

#5A3EDA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 49.8% C 0.223 H 282.9°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5A3EDA
RGBrgb(90, 62, 218)
HSLhsl(251, 68%, 55%)
HSVhsv(251, 72%, 85%)
CMYKcmyk(58.7%, 71.6%, 0%, 14.5%)
CIE-LABlab(39.04, 53.01, -75.56)
CIE-LCHlch(39.04, 92.30, 305.05°)
OKLaboklab(49.76% 0.0498 -0.2177)
OKLCHoklch(49.76% 0.223 282.9)
XYZxyz(18.5900, 10.6796, 67.3978)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3EDA #BEDA3E
analogous
#3E70DA #5A3EDA #A83EDA
triadic
#5A3EDA #DA5A3E #3EDA5A
tetradic
#5A3EDA #DA3E70 #BEDA3E #3EDAA8
square
#5A3EDA #DA3E70 #BEDA3E #3EDAA8
split-complementary
#5A3EDA #DAA83E #70DA3E
monochromatic
#2D1984 #3E23B8 #5A3EDA #8671E4 #B2A5EE

Accessibility & contrast

On white

6.70
#5A3EDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A3EDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3EDA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3EDA#FFFFFF#000000##FFFFFF
##5A3EDA1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DF
Deuteranopia (green-blind)
#0057D7
Tritanopia (blue-blind)
#006988
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a3eda;
/* rgb */ color: rgb(90, 62, 218);
/* oklch */ color: oklch(49.8% 0.223 282.9);
Tailwind
colors: {
  custom: {
    50: '#9676e7',
    500: '#5a3eda',
    950: '#000000',
  },
}
SCSS
$custom: #5a3eda;
$custom-light: #9676e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3eda",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 218
  },
  "hsl": {
    "h": 250.769,
    "s": 67.826,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49761,
    "c": 0.22332,
    "h": 282.9
  },
  "luminance": 0.10681
}

Semantic roles & 50–950 ramp

primary
#5A3EDA
secondary
#CFDB99
accent
#EB3DCC
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3EDA

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

Preview Lab → · Contrast checker → · Palette generator →

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