#5A4FDA#5A4FDA

#5A4FDA is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.3% C 0.204 H 280.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5A4FDA
RGBrgb(90, 79, 218)
HSLhsl(245, 65%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.7%, 63.8%, 0%, 14.5%)
CIE-LABlab(42.50, 43.56, -69.89)
CIE-LCHlch(42.50, 82.35, 301.94°)
OKLaboklab(52.25% 0.0361 -0.2011)
OKLCHoklch(52.25% 0.204 280.2)
XYZxyz(19.6633, 12.8262, 67.7556)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FDA #CFDA4F
analogous
#4F89DA #5A4FDA #9F4FDA
triadic
#5A4FDA #DA5A4F #4FDA5A
tetradic
#5A4FDA #DA4F89 #CFDA4F #4FDA9F
square
#5A4FDA #DA4F89 #CFDA4F #4FDA9F
split-complementary
#5A4FDA #DA9F4F #89DA4F
monochromatic
#271E90 #3529C3 #5A4FDA #8982E5 #B9B4EF

Accessibility & contrast

On white

5.89
#5A4FDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5A4FDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FDA
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FDA#FFFFFF#000000##FFFFFF
##5A4FDA1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005FD7
Tritanopia (blue-blind)
#00728D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4fda;
/* rgb */ color: rgb(90, 79, 218);
/* oklch */ color: oklch(52.3% 0.204 280.2);
Tailwind
colors: {
  custom: {
    50: '#9581e6',
    500: '#5a4fda',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fda;
$custom-light: #9581e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fda",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 218
  },
  "hsl": {
    "h": 244.748,
    "s": 65.258,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52252,
    "c": 0.20432,
    "h": 280.2
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#5A4FDA
secondary
#DADEA7
accent
#E840DB
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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