#5A4FEC#5A4FEC

#5A4FEC is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.8% C 0.227 H 278.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A4FEC
RGBrgb(90, 79, 236)
HSLhsl(244, 81%, 62%)
HSVhsv(244, 67%, 93%)
CMYKcmyk(61.9%, 66.5%, 0%, 7.5%)
CIE-LABlab(43.97, 49.17, -77.70)
CIE-LCHlch(43.97, 91.95, 302.33°)
OKLaboklab(53.77% 0.0342 -0.224)
OKLCHoklch(53.77% 0.227 278.7)
XYZxyz(22.1479, 13.8200, 80.8410)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FEC #E1EC4F
analogous
#4F93EC #5A4FEC #A94FEC
triadic
#5A4FEC #EC5A4F #4FEC5A
tetradic
#5A4FEC #EC4F93 #E1EC4F #4FECA9
square
#5A4FEC #EC4F93 #E1EC4F #4FECA9
split-complementary
#5A4FEC #ECA94F #93EC4F
monochromatic
#1E13AE #2719E5 #5A4FEC #8E86F2 #C2BDF8

Accessibility & contrast

On white

5.58
#5A4FEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A4FEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FEC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FEC#FFFFFF#000000##FFFFFF
##5A4FEC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF1
Deuteranopia (green-blind)
#0062E9
Tritanopia (blue-blind)
#007897
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a4fec;
/* rgb */ color: rgb(90, 79, 236);
/* oklch */ color: oklch(53.8% 0.227 278.7);
Tailwind
colors: {
  custom: {
    50: '#9882f3',
    500: '#5a4fec',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fec;
$custom-light: #9882f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fec",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 236
  },
  "hsl": {
    "h": 244.204,
    "s": 80.513,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53775,
    "c": 0.2266,
    "h": 278.7
  },
  "luminance": 0.13822
}

Semantic roles & 50–950 ramp

primary
#5A4FEC
secondary
#E4E8AE
accent
#DD09CE
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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