#5A79E2#5A79E2

#5A79E2 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.5% C 0.163 H 268.8°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A79E2
RGBrgb(90, 121, 226)
HSLhsl(226, 70%, 62%)
HSVhsv(226, 60%, 89%)
CMYKcmyk(60.2%, 46.5%, 0%, 11.4%)
CIE-LABlab(53.32, 20.62, -56.92)
CIE-LCHlch(53.32, 60.54, 289.92°)
OKLaboklab(60.5% -0.0034 -0.1626)
OKLCHoklch(60.5% 0.163 268.8)
XYZxyz(24.7767, 21.3373, 74.7496)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A79E2 #E2C35A
analogous
#5ABDE2 #5A79E2 #7F5AE2
triadic
#5A79E2 #E25A79 #79E25A
tetradic
#5A79E2 #E25ABD #E2C35A #5AE27F
square
#5A79E2 #E25ABD #E2C35A #5AE27F
split-complementary
#5A79E2 #E27F5A #BDE25A
monochromatic
#1D3CA5 #264FD9 #5A79E2 #8EA3EB #C2CEF4

Accessibility & contrast

On white

3.99
#5A79E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5A79E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A79E2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A79E2#FFFFFF#000000##000000
##5A79E21.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4686E6
Deuteranopia (green-blind)
#2F7AE0
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a79e2;
/* rgb */ color: rgb(90, 121, 226);
/* oklch */ color: oklch(60.5% 0.163 268.8);
Tailwind
colors: {
  custom: {
    50: '#949fec',
    500: '#5a79e2',
    950: '#000000',
  },
}
SCSS
$custom: #5a79e2;
$custom-light: #949fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a79e2",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 226
  },
  "hsl": {
    "h": 226.324,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60504,
    "c": 0.16264,
    "h": 268.8
  },
  "luminance": 0.21339
}

Semantic roles & 50–950 ramp

primary
#5A79E2
secondary
#E5DAB3
accent
#A713D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A79E2

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

Preview Lab → · Contrast checker → · Palette generator →

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