#5A3ED0#5A3ED0

#5A3ED0 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 48.9% C 0.212 H 284.1°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#5A3ED0
RGBrgb(90, 62, 208)
HSLhsl(252, 61%, 53%)
HSVhsv(252, 70%, 82%)
CMYKcmyk(56.7%, 70.2%, 0%, 18.4%)
CIE-LABlab(38.15, 50.07, -71.25)
CIE-LCHlch(38.15, 87.09, 305.10°)
OKLaboklab(48.86% 0.0517 -0.2051)
OKLCHoklch(48.86% 0.212 284.1)
XYZxyz(17.3208, 10.1719, 60.7130)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A3ED0 #B4D03E
analogous
#3E6BD0 #5A3ED0 #A33ED0
triadic
#5A3ED0 #D05A3E #3ED05A
tetradic
#5A3ED0 #D03E6B #B4D03E #3ED0A3
square
#5A3ED0 #D03E6B #B4D03E #3ED0A3
split-complementary
#5A3ED0 #D0A33E #6BD03E
monochromatic
#2E1D77 #4129A8 #5A3ED0 #846FDC #AEA0E8

Accessibility & contrast

On white

6.92
#5A3ED0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5A3ED0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A3ED0
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A3ED0#FFFFFF#000000##FFFFFF
##5A3ED01.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED4
Deuteranopia (green-blind)
#0055CD
Tritanopia (blue-blind)
#1C6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a3ed0;
/* rgb */ color: rgb(90, 62, 208);
/* oklch */ color: oklch(48.9% 0.212 284.1);
Tailwind
colors: {
  custom: {
    50: '#9576e0',
    500: '#5a3ed0',
    950: '#000000',
  },
}
SCSS
$custom: #5a3ed0;
$custom-light: #9576e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a3ed0",
  "rgb": {
    "r": 90,
    "g": 62,
    "b": 208
  },
  "hsl": {
    "h": 251.507,
    "s": 60.833,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4886,
    "c": 0.21153,
    "h": 284.1
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#5A3ED0
secondary
#C8D495
accent
#E444C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A3ED0

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

Preview Lab → · Contrast checker → · Palette generator →

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