#5A4ECD#5A4ECD

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

Color values

HEX#5A4ECD
RGBrgb(90, 78, 205)
HSLhsl(246, 56%, 55%)
HSVhsv(246, 62%, 80%)
CMYKcmyk(56.1%, 62%, 0%, 19.6%)
CIE-LABlab(41.26, 40.08, -64.44)
CIE-LCHlch(41.26, 75.89, 301.88°)
OKLaboklab(51.03% 0.0381 -0.1851)
OKLCHoklch(51.03% 0.189 281.6)
XYZxyz(17.9569, 12.0291, 59.1214)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ECD #C1CD4E
analogous
#4E82CD #5A4ECD #994ECD
triadic
#5A4ECD #CD5A4E #4ECD5A
tetradic
#5A4ECD #CD4E82 #C1CD4E #4ECD99
square
#5A4ECD #CD4E82 #C1CD4E #4ECD99
split-complementary
#5A4ECD #CD994E #82CD4E
monochromatic
#2C237D #3D31AD #5A4ECD #867EDA #B3ADE8

Accessibility & contrast

On white

6.17
#5A4ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5A4ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ECD
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ECD#FFFFFF#000000##FFFFFF
##5A4ECD1.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005DCA
Tritanopia (blue-blind)
#1F6D86
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4ecd;
/* rgb */ color: rgb(90, 78, 205);
/* oklch */ color: oklch(51.0% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#9380dd',
    500: '#5a4ecd',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ecd;
$custom-light: #9380dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ecd",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 205
  },
  "hsl": {
    "h": 245.669,
    "s": 55.947,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51032,
    "c": 0.18896,
    "h": 281.6
  },
  "luminance": 0.1203
}

Semantic roles & 50–950 ramp

primary
#5A4ECD
secondary
#D1D6A1
accent
#DF49D1
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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