#5A7CE2#5A7CE2

#5A7CE2 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.1% C 0.159 H 267.7°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A7CE2
RGBrgb(90, 124, 226)
HSLhsl(225, 70%, 62%)
HSVhsv(225, 60%, 89%)
CMYKcmyk(60.2%, 45.1%, 0%, 11.4%)
CIE-LABlab(54.11, 18.79, -55.65)
CIE-LCHlch(54.11, 58.74, 288.66°)
OKLaboklab(61.11% -0.0065 -0.1588)
OKLCHoklch(61.11% 0.159 267.7)
XYZxyz(25.1469, 22.0778, 74.8730)
Luminance0.2208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CE2 #E2C05A
analogous
#5AC0E2 #5A7CE2 #7C5AE2
triadic
#5A7CE2 #E25A7C #7CE25A
tetradic
#5A7CE2 #E25AC0 #E2C05A #5AE27C
square
#5A7CE2 #E25AC0 #E2C05A #5AE27C
split-complementary
#5A7CE2 #E27C5A #C0E25A
monochromatic
#1D3FA5 #2653D9 #5A7CE2 #8EA5EB #C2CFF4

Accessibility & contrast

On white

3.88
#5A7CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5A7CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CE2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CE2#FFFFFF#000000##000000
##5A7CE21.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C88E6
Deuteranopia (green-blind)
#377CE0
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7ce2;
/* rgb */ color: rgb(90, 124, 226);
/* oklch */ color: oklch(61.1% 0.159 267.7);
Tailwind
colors: {
  custom: {
    50: '#94a1ec',
    500: '#5a7ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ce2;
$custom-light: #94a1ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ce2",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 226
  },
  "hsl": {
    "h": 225,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61109,
    "c": 0.15896,
    "h": 267.7
  },
  "luminance": 0.2208
}

Semantic roles & 50–950 ramp

primary
#5A7CE2
secondary
#E5D8B3
accent
#A213D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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