#5A4FCD#5A4FCD

#5A4FCD is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.2% C 0.188 H 281.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5A4FCD
RGBrgb(90, 79, 205)
HSLhsl(245, 56%, 56%)
HSVhsv(245, 61%, 80%)
CMYKcmyk(56.1%, 61.5%, 0%, 19.6%)
CIE-LABlab(41.49, 39.49, -64.07)
CIE-LCHlch(41.49, 75.26, 301.65°)
OKLaboklab(51.2% 0.0371 -0.184)
OKLCHoklch(51.2% 0.188 281.4)
XYZxyz(18.0285, 12.1722, 59.1452)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FCD #C2CD4F
analogous
#4F83CD #5A4FCD #994FCD
triadic
#5A4FCD #CD5A4F #4FCD5A
tetradic
#5A4FCD #CD4F83 #C2CD4F #4FCD99
square
#5A4FCD #CD4F83 #C2CD4F #4FCD99
split-complementary
#5A4FCD #CD994F #83CD4F
monochromatic
#2C247E #3C31AE #5A4FCD #877FDB #B3AEE8

Accessibility & contrast

On white

6.11
#5A4FCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4FCD
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FCD#FFFFFF#000000##FFFFFF
##5A4FCD1.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a4fcd;
/* rgb */ color: rgb(90, 79, 205);
/* oklch */ color: oklch(51.2% 0.188 281.4);
Tailwind
colors: {
  custom: {
    50: '#9381dd',
    500: '#5a4fcd',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fcd;
$custom-light: #9381dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fcd",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 205
  },
  "hsl": {
    "h": 245.238,
    "s": 55.752,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51198,
    "c": 0.18771,
    "h": 281.4
  },
  "luminance": 0.12173
}

Semantic roles & 50–950 ramp

primary
#5A4FCD
secondary
#D2D6A2
accent
#DF49D2
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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