#5A79F2#5A79F2

#5A79F2 is a mid, vivid blue. Relative luminance 0.223; OKLCH L 61.6% C 0.184 H 269.5°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A79F2
RGBrgb(90, 121, 242)
HSLhsl(228, 85%, 65%)
HSVhsv(228, 63%, 95%)
CMYKcmyk(62.8%, 50%, 0%, 5.1%)
CIE-LABlab(54.30, 25.98, -64.28)
CIE-LCHlch(54.30, 69.33, 292.01°)
OKLaboklab(61.57% -0.0016 -0.1842)
OKLCHoklch(61.57% 0.184 269.5)
XYZxyz(27.0754, 22.2568, 86.8563)
Luminance0.2226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A79F2 #F2D35A
analogous
#5AC5F2 #5A79F2 #875AF2
triadic
#5A79F2 #F25A79 #79F25A
tetradic
#5A79F2 #F25AC5 #F2D35A #5AF287
square
#5A79F2 #F25AC5 #F2D35A #5AF287
split-complementary
#5A79F2 #F2875A #C5F25A
monochromatic
#0F34C2 #214BEE #5A79F2 #93A7F6 #CBD5FB

Accessibility & contrast

On white

3.85
#5A79F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5A79F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A79F2
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A79F2#FFFFFF#000000##000000
##5A79F21.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3489F6
Deuteranopia (green-blind)
#007BF0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a79f2;
/* rgb */ color: rgb(90, 121, 242);
/* oklch */ color: oklch(61.6% 0.184 269.5);
Tailwind
colors: {
  custom: {
    50: '#969ff7',
    500: '#5a79f2',
    950: '#000000',
  },
}
SCSS
$custom: #5a79f2;
$custom-light: #969ff7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a79f2",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 242
  },
  "hsl": {
    "h": 227.763,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.61565,
    "c": 0.18425,
    "h": 269.5
  },
  "luminance": 0.22259
}

Semantic roles & 50–950 ramp

primary
#5A79F2
secondary
#EEE3BA
accent
#B504E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A79F2

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

Preview Lab → · Contrast checker → · Palette generator →

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