#5A4EE3#5A4EE3

#5A4EE3 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.9% C 0.217 H 279.6°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#5A4EE3
RGBrgb(90, 78, 227)
HSLhsl(245, 73%, 60%)
HSVhsv(245, 66%, 89%)
CMYKcmyk(60.4%, 65.6%, 0%, 11%)
CIE-LABlab(43.01, 46.95, -74.18)
CIE-LCHlch(43.01, 87.78, 302.33°)
OKLaboklab(52.85% 0.036 -0.2137)
OKLCHoklch(52.85% 0.217 279.6)
XYZxyz(20.8016, 13.1669, 74.1035)
Luminance0.1317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EE3 #D7E34E
analogous
#4E8DE3 #5A4EE3 #A44EE3
triadic
#5A4EE3 #E35A4E #4EE35A
tetradic
#5A4EE3 #E34E8D #D7E34E #4EE3A4
square
#5A4EE3 #E34E8D #D7E34E #4EE3A4
split-complementary
#5A4EE3 #E3A44E #8DE34E
monochromatic
#24199E #3021D3 #5A4EE3 #8B83EB #BDB8F4

Accessibility & contrast

On white

5.78
#5A4EE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#5A4EE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EE3
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EE3#FFFFFF#000000##FFFFFF
##5A4EE31.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE8
Deuteranopia (green-blind)
#0060E0
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4ee3;
/* rgb */ color: rgb(90, 78, 227);
/* oklch */ color: oklch(52.9% 0.217 279.6);
Tailwind
colors: {
  custom: {
    50: '#9781ed',
    500: '#5a4ee3',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ee3;
$custom-light: #9781ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ee3",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 227
  },
  "hsl": {
    "h": 244.832,
    "s": 72.683,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52851,
    "c": 0.21671,
    "h": 279.6
  },
  "luminance": 0.13168
}

Semantic roles & 50–950 ramp

primary
#5A4EE3
secondary
#DFE3AA
accent
#EF38E1
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A4EE3

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

Preview Lab → · Contrast checker → · Palette generator →

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