#5A79EC#5A79EC

#5A79EC is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.2% C 0.176 H 269.3°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5A79EC
RGBrgb(90, 121, 236)
HSLhsl(227, 79%, 64%)
HSVhsv(227, 62%, 93%)
CMYKcmyk(61.9%, 48.7%, 0%, 7.5%)
CIE-LABlab(53.92, 23.97, -61.54)
CIE-LCHlch(53.92, 66.05, 291.28°)
OKLaboklab(61.16% -0.0022 -0.1762)
OKLCHoklch(61.16% 0.176 269.3)
XYZxyz(26.1890, 21.9023, 82.1881)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A79EC #ECCD5A
analogous
#5AC2EC #5A79EC #845AEC
triadic
#5A79EC #EC5A79 #79EC5A
tetradic
#5A79EC #EC5AC2 #ECCD5A #5AEC84
square
#5A79EC #EC5AC2 #ECCD5A #5AEC84
split-complementary
#5A79EC #EC845A #C2EC5A
monochromatic
#1537B7 #234CE6 #5A79EC #91A6F2 #C8D2F9

Accessibility & contrast

On white

3.90
#5A79EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5A79EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A79EC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A79EC#FFFFFF#000000##000000
##5A79EC1.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C88F0
Deuteranopia (green-blind)
#1B7BEA
Tritanopia (blue-blind)
#0093A7
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a79ec;
/* rgb */ color: rgb(90, 121, 236);
/* oklch */ color: oklch(61.2% 0.176 269.3);
Tailwind
colors: {
  custom: {
    50: '#959ff3',
    500: '#5a79ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a79ec;
$custom-light: #959ff3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a79ec",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 236
  },
  "hsl": {
    "h": 227.26,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.6116,
    "c": 0.1762,
    "h": 269.3
  },
  "luminance": 0.21905
}

Semantic roles & 50–950 ramp

primary
#5A79EC
secondary
#EBE0B7
accent
#AF0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5A79EC

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

Preview Lab → · Contrast checker → · Palette generator →

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