#5A4FE8#5A4FE8

#5A4FE8 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.222 H 279.0°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5A4FE8
RGBrgb(90, 79, 232)
HSLhsl(244, 77%, 61%)
HSVhsv(244, 66%, 91%)
CMYKcmyk(61.2%, 65.9%, 0%, 9%)
CIE-LABlab(43.64, 47.93, -75.99)
CIE-LCHlch(43.64, 89.84, 302.24°)
OKLaboklab(53.43% 0.0347 -0.219)
OKLCHoklch(53.43% 0.222 279)
XYZxyz(21.5733, 13.5902, 77.8146)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FE8 #DDE84F
analogous
#4F90E8 #5A4FE8 #A64FE8
triadic
#5A4FE8 #E85A4F #4FE85A
tetradic
#5A4FE8 #E84F90 #DDE84F #4FE8A6
square
#5A4FE8 #E84F90 #DDE84F #4FE8A6
split-complementary
#5A4FE8 #E8A64F #90E84F
monochromatic
#2016A7 #2B1DDD #5A4FE8 #8D85EF #BFBBF6

Accessibility & contrast

On white

5.65
#5A4FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#5A4FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FE8
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FE8#FFFFFF#000000##FFFFFF
##5A4FE81.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0061E5
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a4fe8;
/* rgb */ color: rgb(90, 79, 232);
/* oklch */ color: oklch(53.4% 0.222 279.0);
Tailwind
colors: {
  custom: {
    50: '#9781f0',
    500: '#5a4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fe8;
$custom-light: #9781f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fe8",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 244.314,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53431,
    "c": 0.22172,
    "h": 279
  },
  "luminance": 0.13592
}

Semantic roles & 50–950 ramp

primary
#5A4FE8
secondary
#E2E6AD
accent
#D90CCA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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