#5A4BD6#5A4BD6

#5A4BD6 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.3% C 0.204 H 281.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5A4BD6
RGBrgb(90, 75, 214)
HSLhsl(246, 63%, 57%)
HSVhsv(246, 65%, 84%)
CMYKcmyk(57.9%, 65%, 0%, 16.1%)
CIE-LABlab(41.31, 44.64, -69.54)
CIE-LCHlch(41.31, 82.63, 302.70°)
OKLaboklab(51.29% 0.04 -0.2001)
OKLCHoklch(51.29% 0.204 281.3)
XYZxyz(18.8663, 12.0596, 64.9389)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BD6 #C7D64B
analogous
#4B82D6 #5A4BD6 #A04BD6
triadic
#5A4BD6 #D65A4B #4BD65A
tetradic
#5A4BD6 #D64B82 #C7D64B #4BD6A0
square
#5A4BD6 #D64B82 #C7D64B #4BD6A0
split-complementary
#5A4BD6 #D6A04B #82D64B
monochromatic
#2A1F88 #3A2ABA #5A4BD6 #887DE1 #B5AFED

Accessibility & contrast

On white

6.15
#5A4BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5A4BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BD6
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BD6#FFFFFF#000000##FFFFFF
##5A4BD61.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#096E8A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4bd6;
/* rgb */ color: rgb(90, 75, 214);
/* oklch */ color: oklch(51.3% 0.204 281.3);
Tailwind
colors: {
  custom: {
    50: '#957ee4',
    500: '#5a4bd6',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bd6;
$custom-light: #957ee4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bd6",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 214
  },
  "hsl": {
    "h": 246.475,
    "s": 62.896,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51288,
    "c": 0.20404,
    "h": 281.3
  },
  "luminance": 0.12061
}

Semantic roles & 50–950 ramp

primary
#5A4BD6
secondary
#D5DBA2
accent
#E642D4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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