#5A4ECC#5A4ECC

#5A4ECC is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.0% C 0.188 H 281.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5A4ECC
RGBrgb(90, 78, 204)
HSLhsl(246, 55%, 55%)
HSVhsv(246, 62%, 80%)
CMYKcmyk(55.9%, 61.8%, 0%, 20%)
CIE-LABlab(41.19, 39.77, -63.98)
CIE-LCHlch(41.19, 75.34, 301.86°)
OKLaboklab(50.95% 0.0381 -0.1838)
OKLCHoklch(50.95% 0.188 281.7)
XYZxyz(17.8365, 11.9809, 58.4877)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ECC #C0CC4E
analogous
#4E81CC #5A4ECC #994ECC
triadic
#5A4ECC #CC5A4E #4ECC5A
tetradic
#5A4ECC #CC4E81 #C0CC4E #4ECC99
square
#5A4ECC #CC4E81 #C0CC4E #4ECC99
split-complementary
#5A4ECC #CC994E #81CC4E
monochromatic
#2C247C #3D31AB #5A4ECC #867EDA #B3ADE7

Accessibility & contrast

On white

6.18
#5A4ECC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5A4ECC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ECC
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ECC#FFFFFF#000000##FFFFFF
##5A4ECC1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#206D86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4ecc;
/* rgb */ color: rgb(90, 78, 204);
/* oklch */ color: oklch(51.0% 0.188 281.7);
Tailwind
colors: {
  custom: {
    50: '#9380dc',
    500: '#5a4ecc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ecc;
$custom-light: #9380dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ecc",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 204
  },
  "hsl": {
    "h": 245.714,
    "s": 55.263,
    "l": 55.294
  },
  "oklch": {
    "l": 0.50952,
    "c": 0.18768,
    "h": 281.7
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#5A4ECC
secondary
#D0D5A1
accent
#DF49D0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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