#5A4FCA#5A4FCA

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

Color values

HEX#5A4FCA
RGBrgb(90, 79, 202)
HSLhsl(245, 54%, 55%)
HSVhsv(245, 61%, 79%)
CMYKcmyk(55.4%, 60.9%, 0%, 20.8%)
CIE-LABlab(41.26, 38.55, -62.70)
CIE-LCHlch(41.26, 73.60, 301.58°)
OKLaboklab(50.96% 0.0373 -0.18)
OKLCHoklch(50.96% 0.184 281.7)
XYZxyz(17.6698, 12.0288, 57.2564)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FCA #BFCA4F
analogous
#4F81CA #5A4FCA #984FCA
triadic
#5A4FCA #CA5A4F #4FCA5A
tetradic
#5A4FCA #CA4F81 #BFCA4F #4FCA98
square
#5A4FCA #CA4F81 #BFCA4F #4FCA98
split-complementary
#5A4FCA #CA984F #81CA4F
monochromatic
#2C257A #3D33A9 #5A4FCA #867ED8 #B2ADE6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4FCA#FFFFFF#000000##FFFFFF
##5A4FCA1.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)
#0066CE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#236D85
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4fca;
/* rgb */ color: rgb(90, 79, 202);
/* oklch */ color: oklch(51.0% 0.184 281.7);
Tailwind
colors: {
  custom: {
    50: '#9281db',
    500: '#5a4fca',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fca;
$custom-light: #9281db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fca",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 202
  },
  "hsl": {
    "h": 245.366,
    "s": 53.712,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5096,
    "c": 0.18381,
    "h": 281.7
  },
  "luminance": 0.1203
}

Semantic roles & 50–950 ramp

primary
#5A4FCA
secondary
#D0D4A1
accent
#DD4BD0
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FCA

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

Preview Lab → · Contrast checker → · Palette generator →

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