#5A79DC#5A79DC

#5A79DC is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.1% C 0.154 H 268.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5A79DC
RGBrgb(90, 121, 220)
HSLhsl(226, 65%, 61%)
HSVhsv(226, 59%, 86%)
CMYKcmyk(59.1%, 45%, 0%, 13.7%)
CIE-LABlab(52.96, 18.63, -54.11)
CIE-LCHlch(52.96, 57.23, 288.99°)
OKLaboklab(60.12% -0.0043 -0.1543)
OKLCHoklch(60.12% 0.154 268.4)
XYZxyz(23.9677, 21.0138, 70.4893)
Luminance0.2102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A79DC #DCBD5A
analogous
#5ABADC #5A79DC #7C5ADC
triadic
#5A79DC #DC5A79 #79DC5A
tetradic
#5A79DC #DC5ABA #DCBD5A #5ADC7C
square
#5A79DC #DC5ABA #DCBD5A #5ADC7C
split-complementary
#5A79DC #DC7C5A #BADC5A
monochromatic
#213E9B #2C52CD #5A79DC #8CA2E7 #BFCBF1

Accessibility & contrast

On white

4.04
#5A79DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5A79DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A79DC
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A79DC#FFFFFF#000000##000000
##5A79DC1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B85E0
Deuteranopia (green-blind)
#3879DA
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5a79dc;
/* rgb */ color: rgb(90, 121, 220);
/* oklch */ color: oklch(60.1% 0.154 268.4);
Tailwind
colors: {
  custom: {
    50: '#939fe7',
    500: '#5a79dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a79dc;
$custom-light: #939fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a79dc",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 220
  },
  "hsl": {
    "h": 225.692,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60121,
    "c": 0.1544,
    "h": 268.4
  },
  "luminance": 0.21016
}

Semantic roles & 50–950 ramp

primary
#5A79DC
secondary
#E2D6B0
accent
#A219CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A79DC

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

Preview Lab → · Contrast checker → · Palette generator →

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