#5A4BD8#5A4BD8

#5A4BD8 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.5% C 0.207 H 281.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5A4BD8
RGBrgb(90, 75, 216)
HSLhsl(246, 64%, 57%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.3%, 65.3%, 0%, 15.3%)
CIE-LABlab(41.47, 45.26, -70.42)
CIE-LCHlch(41.47, 83.71, 302.73°)
OKLaboklab(51.46% 0.0398 -0.2027)
OKLCHoklch(51.46% 0.207 281.1)
XYZxyz(19.1233, 12.1624, 66.2923)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BD8 #C9D84B
analogous
#4B83D8 #5A4BD8 #A14BD8
triadic
#5A4BD8 #D85A4B #4BD85A
tetradic
#5A4BD8 #D84B83 #C9D84B #4BD8A1
square
#5A4BD8 #D84B83 #C9D84B #4BD8A1
split-complementary
#5A4BD8 #D8A14B #83D84B
monochromatic
#2A1E8B #3929BD #5A4BD8 #887DE3 #B6B0EE

Accessibility & contrast

On white

6.12
#5A4BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A4BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BD8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BD8#FFFFFF#000000##FFFFFF
##5A4BD81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#016F8B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4bd8;
/* rgb */ color: rgb(90, 75, 216);
/* oklch */ color: oklch(51.5% 0.207 281.1);
Tailwind
colors: {
  custom: {
    50: '#957ee5',
    500: '#5a4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bd8;
$custom-light: #957ee5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bd8",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 246.383,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51456,
    "c": 0.20654,
    "h": 281.1
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#5A4BD8
secondary
#D6DCA3
accent
#E740D6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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