#5A4FE0#5A4FE0

#5A4FE0 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.8% C 0.212 H 279.7°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5A4FE0
RGBrgb(90, 79, 224)
HSLhsl(245, 70%, 59%)
HSVhsv(245, 65%, 88%)
CMYKcmyk(59.8%, 64.7%, 0%, 12.2%)
CIE-LABlab(42.98, 45.44, -72.52)
CIE-LCHlch(42.98, 85.58, 302.07°)
OKLaboklab(52.75% 0.0356 -0.2088)
OKLCHoklch(52.75% 0.212 279.7)
XYZxyz(20.4627, 13.1460, 71.9657)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FE0 #D5E04F
analogous
#4F8DE0 #5A4FE0 #A34FE0
triadic
#5A4FE0 #E05A4F #4FE05A
tetradic
#5A4FE0 #E04F8D #D5E04F #4FE0A3
square
#5A4FE0 #E04F8D #D5E04F #4FE0A3
split-complementary
#5A4FE0 #E0A34F #8DE04F
monochromatic
#251B9A #3124CE #5A4FE0 #8B83E9 #BCB7F2

Accessibility & contrast

On white

5.79
#5A4FE0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4FE0
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FE0#FFFFFF#000000##FFFFFF
##5A4FE01.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE5
Deuteranopia (green-blind)
#0060DD
Tritanopia (blue-blind)
#007491
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4fe0;
/* rgb */ color: rgb(90, 79, 224);
/* oklch */ color: oklch(52.8% 0.212 279.7);
Tailwind
colors: {
  custom: {
    50: '#9681eb',
    500: '#5a4fe0',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fe0;
$custom-light: #9681eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fe0",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 224
  },
  "hsl": {
    "h": 244.552,
    "s": 70.048,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52752,
    "c": 0.21184,
    "h": 279.7
  },
  "luminance": 0.13147
}

Semantic roles & 50–950 ramp

primary
#5A4FE0
secondary
#DDE2A9
accent
#ED3BDF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FE0

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

Preview Lab → · Contrast checker → · Palette generator →

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