#5A4CD6#5A4CD6

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

Color values

HEX#5A4CD6
RGBrgb(90, 76, 214)
HSLhsl(246, 63%, 57%)
HSVhsv(246, 64%, 84%)
CMYKcmyk(57.9%, 64.5%, 0%, 16.1%)
CIE-LABlab(41.53, 44.06, -69.19)
CIE-LCHlch(41.53, 82.02, 302.49°)
OKLaboklab(51.44% 0.0391 -0.199)
OKLCHoklch(51.44% 0.203 281.1)
XYZxyz(18.9347, 12.1963, 64.9616)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD6 #C8D64C
analogous
#4C83D6 #5A4CD6 #9F4CD6
triadic
#5A4CD6 #D65A4C #4CD65A
tetradic
#5A4CD6 #D64C83 #C8D64C #4CD69F
square
#5A4CD6 #D64C83 #C8D64C #4CD69F
split-complementary
#5A4CD6 #D69F4C #83D64C
monochromatic
#2A1F88 #392BBA #5A4CD6 #887EE1 #B6B0ED

Accessibility & contrast

On white

6.11
#5A4CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5A4CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD6
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD6#FFFFFF#000000##FFFFFF
##5A4CD61.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#096F8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4cd6;
/* rgb */ color: rgb(90, 76, 214);
/* oklch */ color: oklch(51.4% 0.203 281.1);
Tailwind
colors: {
  custom: {
    50: '#957fe4',
    500: '#5a4cd6',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd6;
$custom-light: #957fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd6",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 214
  },
  "hsl": {
    "h": 246.087,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51445,
    "c": 0.20286,
    "h": 281.1
  },
  "luminance": 0.12198
}

Semantic roles & 50–950 ramp

primary
#5A4CD6
secondary
#D5DBA3
accent
#E642D5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CD6

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

Preview Lab → · Contrast checker → · Palette generator →

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