#5A7DE6#5A7DE6

#5A7DE6 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.6% C 0.163 H 267.6°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5A7DE6
RGBrgb(90, 125, 230)
HSLhsl(225, 74%, 63%)
HSVhsv(225, 61%, 90%)
CMYKcmyk(60.9%, 45.7%, 0%, 9.8%)
CIE-LABlab(54.61, 19.51, -57.09)
CIE-LCHlch(54.61, 60.34, 288.87°)
OKLaboklab(61.57% -0.0069 -0.163)
OKLCHoklch(61.57% 0.163 267.6)
XYZxyz(25.8281, 22.5518, 77.8394)
Luminance0.2255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7DE6 #E6C35A
analogous
#5AC3E6 #5A7DE6 #7D5AE6
triadic
#5A7DE6 #E65A7D #7DE65A
tetradic
#5A7DE6 #E65AC3 #E6C35A #5AE67D
square
#5A7DE6 #E65AC3 #E6C35A #5AE67D
split-complementary
#5A7DE6 #E67D5A #C3E65A
monochromatic
#1A3EAC #2553DE #5A7DE6 #8FA7EE #C4D1F6

Accessibility & contrast

On white

3.81
#5A7DE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5A7DE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7DE6
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7DE6#FFFFFF#000000##000000
##5A7DE61.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A89EA
Deuteranopia (green-blind)
#337DE4
Tritanopia (blue-blind)
#0095A6
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7de6;
/* rgb */ color: rgb(90, 125, 230);
/* oklch */ color: oklch(61.6% 0.163 267.6);
Tailwind
colors: {
  custom: {
    50: '#94a2ee',
    500: '#5a7de6',
    950: '#000000',
  },
}
SCSS
$custom: #5a7de6;
$custom-light: #94a2ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7de6",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 230
  },
  "hsl": {
    "h": 225,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.61565,
    "c": 0.16319,
    "h": 267.6
  },
  "luminance": 0.22554
}

Semantic roles & 50–950 ramp

primary
#5A7DE6
secondary
#E7DBB5
accent
#A410D6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7DE6

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

Preview Lab → · Contrast checker → · Palette generator →

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