#5A3ED8#5A3ED8

#5A3ED8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.6% C 0.221 H 283.1°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED8
RGBrgb(90, 62, 216)
HSLhsl(251, 66%, 55%)
HSVhsv(251, 71%, 85%)
CMYKcmyk(58.3%, 71.3%, 0%, 15.3%)
CIE-LABlab(38.86, 52.43, -74.71)
CIE-LCHlch(38.86, 91.27, 305.06°)
OKLaboklab(49.58% 0.0502 -0.2152)
OKLCHoklch(49.58% 0.221 283.1)
XYZxyz(18.3299, 10.5756, 66.0278)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED8 #BCD83E
analogous
#3E6FD8 #5A3ED8 #A73ED8
triadic
#5A3ED8 #D85A3E #3ED85A
tetradic
#5A3ED8 #D83E6F #BCD83E #3ED8A7
square
#5A3ED8 #D83E6F #BCD83E #3ED8A7
split-complementary
#5A3ED8 #D8A73E #6FD83E
monochromatic
#2D1A81 #3F24B4 #5A3ED8 #8671E2 #B1A4ED

Accessibility & contrast

On white

6.74
#5A3ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5A3ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED8
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED8#FFFFFF#000000##FFFFFF
##5A3ED81.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0056D5
Tritanopia (blue-blind)
#066887
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a3ed8;
/* rgb */ color: rgb(90, 62, 216);
/* oklch */ color: oklch(49.6% 0.221 283.1);
Tailwind
colors: {
  custom: {
    50: '#9676e5',
    500: '#5a3ed8',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed8;
$custom-light: #9676e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed8",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 216
  },
  "hsl": {
    "h": 250.909,
    "s": 66.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49579,
    "c": 0.22099,
    "h": 283.1
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#5A3ED8
secondary
#CED998
accent
#E93ECA
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5A3ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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