#5A4CE8#5A4CE8

#5A4CE8 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 53.0% C 0.225 H 279.5°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A4CE8
RGBrgb(90, 76, 232)
HSLhsl(245, 77%, 60%)
HSVhsv(245, 67%, 91%)
CMYKcmyk(61.2%, 67.2%, 0%, 9%)
CIE-LABlab(43.01, 49.63, -77.01)
CIE-LCHlch(43.01, 91.61, 302.80°)
OKLaboklab(52.98% 0.037 -0.222)
OKLCHoklch(52.98% 0.225 279.5)
XYZxyz(21.3617, 13.1671, 77.7441)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CE8 #DAE84C
analogous
#4C8CE8 #5A4CE8 #A84CE8
triadic
#5A4CE8 #E85A4C #4CE85A
tetradic
#5A4CE8 #E84C8C #DAE84C #4CE8A8
square
#5A4CE8 #E84C8C #DAE84C #4CE8A8
split-complementary
#5A4CE8 #E8A84C #8CE84C
monochromatic
#2215A4 #2D1CDB #5A4CE8 #8C82EF #BEB8F6

Accessibility & contrast

On white

5.78
#5A4CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4CE8
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CE8#FFFFFF#000000##FFFFFF
##5A4CE81.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CED
Deuteranopia (green-blind)
#005FE5
Tritanopia (blue-blind)
#007594
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4ce8;
/* rgb */ color: rgb(90, 76, 232);
/* oklch */ color: oklch(53.0% 0.225 279.5);
Tailwind
colors: {
  custom: {
    50: '#987ff1',
    500: '#5a4ce8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ce8;
$custom-light: #987ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ce8",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 232
  },
  "hsl": {
    "h": 245.385,
    "s": 77.228,
    "l": 60.392
  },
  "oklch": {
    "l": 0.5298,
    "c": 0.22506,
    "h": 279.5
  },
  "luminance": 0.13169
}

Semantic roles & 50–950 ramp

primary
#5A4CE8
secondary
#E0E6AA
accent
#D90CC7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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