#5A72E4#5A72E4

#5A72E4 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.174 H 271.2°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A72E4
RGBrgb(90, 114, 228)
HSLhsl(230, 72%, 62%)
HSVhsv(230, 61%, 89%)
CMYKcmyk(60.5%, 50%, 0%, 10.6%)
CIE-LABlab(51.62, 25.59, -60.77)
CIE-LCHlch(51.62, 65.94, 292.83°)
OKLaboklab(59.25% 0.0037 -0.174)
OKLCHoklch(59.25% 0.174 271.2)
XYZxyz(24.2327, 19.8077, 75.9300)
Luminance0.1981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A72E4 #E4CC5A
analogous
#5AB7E4 #5A72E4 #875AE4
triadic
#5A72E4 #E45A72 #72E45A
tetradic
#5A72E4 #E45AB7 #E4CC5A #5AE487
square
#5A72E4 #E45AB7 #E4CC5A #5AE487
split-complementary
#5A72E4 #E4875A #B7E45A
monochromatic
#1C34A8 #2545DB #5A72E4 #8F9FED #C3CCF5

Accessibility & contrast

On white

4.23
#5A72E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5A72E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A72E4
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A72E4#FFFFFF#000000##000000
##5A72E41.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3481E8
Deuteranopia (green-blind)
#1175E2
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a72e4;
/* rgb */ color: rgb(90, 114, 228);
/* oklch */ color: oklch(59.3% 0.174 271.2);
Tailwind
colors: {
  custom: {
    50: '#959aed',
    500: '#5a72e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a72e4;
$custom-light: #959aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a72e4",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 229.565,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59253,
    "c": 0.17405,
    "h": 271.2
  },
  "luminance": 0.1981
}

Semantic roles & 50–950 ramp

primary
#5A72E4
secondary
#E6DDB4
accent
#B212D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A72E4

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

Preview Lab → · Contrast checker → · Palette generator →

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