#5A4DCC#5A4DCC

#5A4DCC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.8% C 0.189 H 281.9°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5A4DCC
RGBrgb(90, 77, 204)
HSLhsl(246, 55%, 55%)
HSVhsv(246, 62%, 80%)
CMYKcmyk(55.9%, 62.3%, 0%, 20%)
CIE-LABlab(40.96, 40.36, -64.35)
CIE-LCHlch(40.96, 75.96, 302.10°)
OKLaboklab(50.79% 0.0391 -0.1848)
OKLCHoklch(50.79% 0.189 281.9)
XYZxyz(17.7660, 11.8399, 58.4642)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DCC #BFCC4D
analogous
#4D7FCC #5A4DCC #9A4DCC
triadic
#5A4DCC #CC5A4D #4DCC5A
tetradic
#5A4DCC #CC4D7F #BFCC4D #4DCC9A
square
#5A4DCC #CC4D7F #BFCC4D #4DCC9A
split-complementary
#5A4DCC #CC9A4D #7FCC4D
monochromatic
#2C237B #3D31AB #5A4DCC #867DDA #B2ACE7

Accessibility & contrast

On white

6.23
#5A4DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5A4DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DCC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DCC#FFFFFF#000000##FFFFFF
##5A4DCC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#206C85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4dcc;
/* rgb */ color: rgb(90, 77, 204);
/* oklch */ color: oklch(50.8% 0.189 281.9);
Tailwind
colors: {
  custom: {
    50: '#937fdc',
    500: '#5a4dcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dcc;
$custom-light: #937fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dcc",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 204
  },
  "hsl": {
    "h": 246.142,
    "s": 55.459,
    "l": 55.098
  },
  "oklch": {
    "l": 0.50788,
    "c": 0.18893,
    "h": 281.9
  },
  "luminance": 0.11841
}

Semantic roles & 50–950 ramp

primary
#5A4DCC
secondary
#D0D5A0
accent
#DF49CF
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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