#5A4BE8#5A4BE8

#5A4BE8 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.8% C 0.226 H 279.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5A4BE8
RGBrgb(90, 75, 232)
HSLhsl(246, 77%, 60%)
HSVhsv(246, 68%, 91%)
CMYKcmyk(61.2%, 67.7%, 0%, 9%)
CIE-LABlab(42.81, 50.19, -77.35)
CIE-LCHlch(42.81, 92.20, 302.98°)
OKLaboklab(52.83% 0.0377 -0.223)
OKLCHoklch(52.83% 0.226 279.6)
XYZxyz(21.2934, 13.0304, 77.7213)
Luminance0.1303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BE8 #D9E84B
analogous
#4B8BE8 #5A4BE8 #A84BE8
triadic
#5A4BE8 #E85A4B #4BE85A
tetradic
#5A4BE8 #E84B8B #D9E84B #4BE8A8
square
#5A4BE8 #E84B8B #D9E84B #4BE8A8
split-complementary
#5A4BE8 #E8A84B #8BE84B
monochromatic
#2315A4 #2E1CDA #5A4BE8 #8C81EF #BDB8F6

Accessibility & contrast

On white

5.82
#5A4BE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5A4BE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BE8
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BE8#FFFFFF#000000##FFFFFF
##5A4BE81.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a4be8;
/* rgb */ color: rgb(90, 75, 232);
/* oklch */ color: oklch(52.8% 0.226 279.6);
Tailwind
colors: {
  custom: {
    50: '#987ff1',
    500: '#5a4be8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4be8;
$custom-light: #987ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4be8",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 232
  },
  "hsl": {
    "h": 245.732,
    "s": 77.34,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52832,
    "c": 0.22615,
    "h": 279.6
  },
  "luminance": 0.13032
}

Semantic roles & 50–950 ramp

primary
#5A4BE8
secondary
#E0E6A9
accent
#DA0CC6
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4BE8

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

Preview Lab → · Contrast checker → · Palette generator →

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