#5A4FCC#5A4FCC

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

Color values

HEX#5A4FCC
RGBrgb(90, 79, 204)
HSLhsl(245, 55%, 55%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(55.9%, 61.3%, 0%, 20%)
CIE-LABlab(41.41, 39.17, -63.61)
CIE-LCHlch(41.41, 74.71, 301.63°)
OKLaboklab(51.12% 0.0372 -0.1827)
OKLCHoklch(51.12% 0.186 281.5)
XYZxyz(17.9081, 12.1241, 58.5116)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FCC #C1CC4F
analogous
#4F82CC #5A4FCC #984FCC
triadic
#5A4FCC #CC5A4F #4FCC5A
tetradic
#5A4FCC #CC4F82 #C1CC4F #4FCC98
square
#5A4FCC #CC4F82 #C1CC4F #4FCC98
split-complementary
#5A4FCC #CC984F #82CC4F
monochromatic
#2C247D #3D32AC #5A4FCC #867EDA #B3AEE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4FCC#FFFFFF#000000##FFFFFF
##5A4FCC1.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)
#0066D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#206D86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4fcc;
/* rgb */ color: rgb(90, 79, 204);
/* oklch */ color: oklch(51.1% 0.186 281.5);
Tailwind
colors: {
  custom: {
    50: '#9381dc',
    500: '#5a4fcc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fcc;
$custom-light: #9381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fcc",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 204
  },
  "hsl": {
    "h": 245.28,
    "s": 55.066,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51118,
    "c": 0.18642,
    "h": 281.5
  },
  "luminance": 0.12125
}

Semantic roles & 50–950 ramp

primary
#5A4FCC
secondary
#D1D5A1
accent
#DE49D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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