#5A72EC#5A72EC

#5A72EC is a mid, vivid blue. Relative luminance 0.203; OKLCH L 59.8% C 0.185 H 271.4°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5A72EC
RGBrgb(90, 114, 236)
HSLhsl(230, 79%, 64%)
HSVhsv(230, 62%, 93%)
CMYKcmyk(61.9%, 51.7%, 0%, 7.5%)
CIE-LABlab(52.13, 28.25, -64.43)
CIE-LCHlch(52.13, 70.35, 293.68°)
OKLaboklab(59.81% 0.0044 -0.1848)
OKLCHoklch(59.81% 0.185 271.4)
XYZxyz(25.3690, 20.2623, 81.9147)
Luminance0.2026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A72EC #ECD45A
analogous
#5ABBEC #5A72EC #8B5AEC
triadic
#5A72EC #EC5A72 #72EC5A
tetradic
#5A72EC #EC5ABB #ECD45A #5AEC8B
square
#5A72EC #EC5ABB #ECD45A #5AEC8B
split-complementary
#5A72EC #EC8B5A #BBEC5A
monochromatic
#1530B7 #2343E6 #5A72EC #91A1F2 #C8D0F9

Accessibility & contrast

On white

4.16
#5A72EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5A72EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A72EC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A72EC#FFFFFF#000000##000000
##5A72EC1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2883F0
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a72ec;
/* rgb */ color: rgb(90, 114, 236);
/* oklch */ color: oklch(59.8% 0.185 271.4);
Tailwind
colors: {
  custom: {
    50: '#969af3',
    500: '#5a72ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a72ec;
$custom-light: #969af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a72ec",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 236
  },
  "hsl": {
    "h": 230.137,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59805,
    "c": 0.18482,
    "h": 271.4
  },
  "luminance": 0.20264
}

Semantic roles & 50–950 ramp

primary
#5A72EC
secondary
#EBE2B7
accent
#B90ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5A72EC

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

Preview Lab → · Contrast checker → · Palette generator →

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