#5A4DD2#5A4DD2

#5A4DD2 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 51.3% C 0.197 H 281.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A4DD2
RGBrgb(90, 77, 210)
HSLhsl(246, 60%, 56%)
HSVhsv(246, 63%, 82%)
CMYKcmyk(57.1%, 63.3%, 0%, 17.6%)
CIE-LABlab(41.43, 42.23, -67.05)
CIE-LCHlch(41.43, 79.24, 302.21°)
OKLaboklab(51.27% 0.0386 -0.1928)
OKLCHoklch(51.27% 0.197 281.3)
XYZxyz(18.4996, 12.1333, 62.3274)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DD2 #C5D24D
analogous
#4D83D2 #5A4DD2 #9D4DD2
triadic
#5A4DD2 #D25A4D #4DD25A
tetradic
#5A4DD2 #D24D83 #C5D24D #4DD29D
square
#5A4DD2 #D24D83 #C5D24D #4DD29D
split-complementary
#5A4DD2 #D29D4D #83D24D
monochromatic
#2B2183 #3B2EB4 #5A4DD2 #877EDE #B5AFEB

Accessibility & contrast

On white

6.13
#5A4DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4DD2
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DD2#FFFFFF#000000##FFFFFF
##5A4DD21.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#156E88
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4dd2;
/* rgb */ color: rgb(90, 77, 210);
/* oklch */ color: oklch(51.3% 0.197 281.3);
Tailwind
colors: {
  custom: {
    50: '#9480e1',
    500: '#5a4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dd2;
$custom-light: #9480e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dd2",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 245.865,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51274,
    "c": 0.1966,
    "h": 281.3
  },
  "luminance": 0.12135
}

Semantic roles & 50–950 ramp

primary
#5A4DD2
secondary
#D3D9A2
accent
#E345D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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