#5A4DE5#5A4DE5

#5A4DE5 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.9% C 0.220 H 279.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5A4DE5
RGBrgb(90, 77, 229)
HSLhsl(245, 75%, 60%)
HSVhsv(245, 66%, 90%)
CMYKcmyk(60.7%, 66.4%, 0%, 10.2%)
CIE-LABlab(42.97, 48.14, -75.38)
CIE-LCHlch(42.97, 89.44, 302.56°)
OKLaboklab(52.87% 0.0366 -0.2172)
OKLCHoklch(52.87% 0.22 279.6)
XYZxyz(21.0087, 13.1370, 75.5422)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DE5 #D8E54D
analogous
#4D8CE5 #5A4DE5 #A64DE5
triadic
#5A4DE5 #E55A4D #4DE55A
tetradic
#5A4DE5 #E54D8C #D8E54D #4DE5A6
square
#5A4DE5 #E54D8C #D8E54D #4DE5A6
split-complementary
#5A4DE5 #E5A64D #8CE54D
monochromatic
#2317A0 #2F1FD6 #5A4DE5 #8C82ED #BDB8F5

Accessibility & contrast

On white

5.79
#5A4DE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A4DE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DE5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DE5#FFFFFF#000000##FFFFFF
##5A4DE51.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#005FE2
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4de5;
/* rgb */ color: rgb(90, 77, 229);
/* oklch */ color: oklch(52.9% 0.220 279.6);
Tailwind
colors: {
  custom: {
    50: '#9780ee',
    500: '#5a4de5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4de5;
$custom-light: #9780ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4de5",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 229
  },
  "hsl": {
    "h": 245.132,
    "s": 74.51,
    "l": 60
  },
  "oklch": {
    "l": 0.52869,
    "c": 0.22029,
    "h": 279.6
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#5A4DE5
secondary
#DFE4AA
accent
#F137E1
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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