#5A4ED2#5A4ED2

#5A4ED2 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.4% C 0.195 H 281.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5A4ED2
RGBrgb(90, 78, 210)
HSLhsl(245, 59%, 56%)
HSVhsv(245, 63%, 82%)
CMYKcmyk(57.1%, 62.9%, 0%, 17.6%)
CIE-LABlab(41.65, 41.64, -66.69)
CIE-LCHlch(41.65, 78.62, 301.98°)
OKLaboklab(51.43% 0.0377 -0.1917)
OKLCHoklch(51.43% 0.195 281.1)
XYZxyz(18.5701, 12.2744, 62.3509)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ED2 #C6D24E
analogous
#4E84D2 #5A4ED2 #9C4ED2
triadic
#5A4ED2 #D25A4E #4ED25A
tetradic
#5A4ED2 #D24E84 #C6D24E #4ED29C
square
#5A4ED2 #D24E84 #C6D24E #4ED29C
split-complementary
#5A4ED2 #D29C4E #84D24E
monochromatic
#2B2284 #3A2EB5 #5A4ED2 #877FDE #B5B0EB

Accessibility & contrast

On white

6.08
#5A4ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A4ED2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ED2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ED2#FFFFFF#000000##FFFFFF
##5A4ED21.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#156F89
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4ed2;
/* rgb */ color: rgb(90, 78, 210);
/* oklch */ color: oklch(51.4% 0.195 281.1);
Tailwind
colors: {
  custom: {
    50: '#9480e1',
    500: '#5a4ed2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ed2;
$custom-light: #9480e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ed2",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 210
  },
  "hsl": {
    "h": 245.455,
    "s": 59.459,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51435,
    "c": 0.19538,
    "h": 281.1
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#5A4ED2
secondary
#D4D9A3
accent
#E345D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ED2

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

Preview Lab → · Contrast checker → · Palette generator →

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