#5A72DC#5A72DC

#5A72DC is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.7% C 0.163 H 271.0°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5A72DC
RGBrgb(90, 114, 220)
HSLhsl(229, 65%, 61%)
HSVhsv(229, 59%, 86%)
CMYKcmyk(59.1%, 48.2%, 0%, 13.7%)
CIE-LABlab(51.12, 22.93, -57.06)
CIE-LCHlch(51.12, 61.50, 291.89°)
OKLaboklab(58.72% 0.0029 -0.1631)
OKLCHoklch(58.72% 0.163 271)
XYZxyz(23.1477, 19.3737, 70.2160)
Luminance0.1938 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A72DC #DCC45A
analogous
#5AB3DC #5A72DC #835ADC
triadic
#5A72DC #DC5A72 #72DC5A
tetradic
#5A72DC #DC5AB3 #DCC45A #5ADC83
square
#5A72DC #DC5AB3 #DCC45A #5ADC83
split-complementary
#5A72DC #DC835A #B3DC5A
monochromatic
#21379B #2C49CD #5A72DC #8C9DE7 #BFC8F1

Accessibility & contrast

On white

4.31
#5A72DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#5A72DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A72DC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A72DC#FFFFFF#000000##000000
##5A72DC1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#2674DA
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a72dc;
/* rgb */ color: rgb(90, 114, 220);
/* oklch */ color: oklch(58.7% 0.163 271.0);
Tailwind
colors: {
  custom: {
    50: '#939ae7',
    500: '#5a72dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a72dc;
$custom-light: #939ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a72dc",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 228.923,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58716,
    "c": 0.16313,
    "h": 271
  },
  "luminance": 0.19376
}

Semantic roles & 50–950 ramp

primary
#5A72DC
secondary
#E2D8B0
accent
#AC19CD
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A72DC

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

Preview Lab → · Contrast checker → · Palette generator →

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