#5A4ECE#5A4ECE

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

Color values

HEX#5A4ECE
RGBrgb(90, 78, 206)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 62%, 81%)
CMYKcmyk(56.3%, 62.1%, 0%, 19.2%)
CIE-LABlab(41.34, 40.40, -64.89)
CIE-LCHlch(41.34, 76.43, 301.90°)
OKLaboklab(51.11% 0.038 -0.1864)
OKLCHoklch(51.11% 0.19 281.5)
XYZxyz(18.0780, 12.0775, 59.7591)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ECE #C2CE4E
analogous
#4E82CE #5A4ECE #9A4ECE
triadic
#5A4ECE #CE5A4E #4ECE5A
tetradic
#5A4ECE #CE4E82 #C2CE4E #4ECE9A
square
#5A4ECE #CE4E82 #C2CE4E #4ECE9A
split-complementary
#5A4ECE #CE9A4E #82CE4E
monochromatic
#2C237F #3C30AE #5A4ECE #877EDB #B3AEE9

Accessibility & contrast

On white

6.15
#5A4ECE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A4ECE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ECE
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ECE#FFFFFF#000000##FFFFFF
##5A4ECE1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005DCB
Tritanopia (blue-blind)
#1D6D87
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4ece;
/* rgb */ color: rgb(90, 78, 206);
/* oklch */ color: oklch(51.1% 0.190 281.5);
Tailwind
colors: {
  custom: {
    50: '#9380de',
    500: '#5a4ece',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ece;
$custom-light: #9380de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ece",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 206
  },
  "hsl": {
    "h": 245.625,
    "s": 56.637,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51112,
    "c": 0.19025,
    "h": 281.5
  },
  "luminance": 0.12079
}

Semantic roles & 50–950 ramp

primary
#5A4ECE
secondary
#D2D7A1
accent
#E048D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4ECE

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

Preview Lab → · Contrast checker → · Palette generator →

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