#5A4AE7#5A4AE7

#5A4AE7 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.6% C 0.226 H 279.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5A4AE7
RGBrgb(90, 74, 231)
HSLhsl(246, 77%, 60%)
HSVhsv(246, 68%, 91%)
CMYKcmyk(61%, 68%, 0%, 9.4%)
CIE-LABlab(42.52, 50.44, -77.25)
CIE-LCHlch(42.52, 92.26, 303.14°)
OKLaboklab(52.6% 0.0386 -0.2227)
OKLCHoklch(52.6% 0.226 279.8)
XYZxyz(21.0845, 12.8392, 76.9529)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AE7 #D7E74A
analogous
#4A88E7 #5A4AE7 #A94AE7
triadic
#5A4AE7 #E75A4A #4AE75A
tetradic
#5A4AE7 #E74A88 #D7E74A #4AE7A9
square
#5A4AE7 #E74A88 #D7E74A #4AE7A9
split-complementary
#5A4AE7 #E7A94A #88E74A
monochromatic
#2415A1 #301DD7 #5A4AE7 #8B80EE #BDB6F5

Accessibility & contrast

On white

5.89
#5A4AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5A4AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AE7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AE7#FFFFFF#000000##FFFFFF
##5A4AE71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AEC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#007493
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4ae7;
/* rgb */ color: rgb(90, 74, 231);
/* oklch */ color: oklch(52.6% 0.226 279.8);
Tailwind
colors: {
  custom: {
    50: '#987ef0',
    500: '#5a4ae7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ae7;
$custom-light: #987ef0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ae7",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 231
  },
  "hsl": {
    "h": 246.115,
    "s": 76.585,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52598,
    "c": 0.22603,
    "h": 279.8
  },
  "luminance": 0.12841
}

Semantic roles & 50–950 ramp

primary
#5A4AE7
secondary
#DFE5A8
accent
#F335E0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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