#5A4EE7#5A4EE7

#5A4EE7 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.2% C 0.222 H 279.2°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5A4EE7
RGBrgb(90, 78, 231)
HSLhsl(245, 76%, 61%)
HSVhsv(245, 66%, 91%)
CMYKcmyk(61%, 66.2%, 0%, 9.4%)
CIE-LABlab(43.35, 48.19, -75.90)
CIE-LCHlch(43.35, 89.91, 302.41°)
OKLaboklab(53.19% 0.0356 -0.2187)
OKLCHoklch(53.19% 0.222 279.2)
XYZxyz(21.3600, 13.3903, 77.0448)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EE7 #DBE74E
analogous
#4E8EE7 #5A4EE7 #A64EE7
triadic
#5A4EE7 #E75A4E #4EE75A
tetradic
#5A4EE7 #E74E8E #DBE74E #4EE7A6
square
#5A4EE7 #E74E8E #DBE74E #4EE7A6
split-complementary
#5A4EE7 #E7A64E #8EE74E
monochromatic
#2116A4 #2C1EDA #5A4EE7 #8C84EE #BEBAF6

Accessibility & contrast

On white

5.71
#5A4EE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5A4EE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EE7
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EE7#FFFFFF#000000##FFFFFF
##5A4EE71.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEC
Deuteranopia (green-blind)
#0060E4
Tritanopia (blue-blind)
#007694
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4ee7;
/* rgb */ color: rgb(90, 78, 231);
/* oklch */ color: oklch(53.2% 0.222 279.2);
Tailwind
colors: {
  custom: {
    50: '#9781f0',
    500: '#5a4ee7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ee7;
$custom-light: #9781f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ee7",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 231
  },
  "hsl": {
    "h": 244.706,
    "s": 76.119,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.22161,
    "h": 279.2
  },
  "luminance": 0.13392
}

Semantic roles & 50–950 ramp

primary
#5A4EE7
secondary
#E1E5AB
accent
#D80DC8
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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