#5A6FE4#5A6FE4

#5A6FE4 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.7% C 0.178 H 272.1°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5A6FE4
RGBrgb(90, 111, 228)
HSLhsl(231, 72%, 62%)
HSVhsv(231, 61%, 89%)
CMYKcmyk(60.5%, 51.3%, 0%, 10.6%)
CIE-LABlab(50.85, 27.43, -62.01)
CIE-LCHlch(50.85, 67.80, 293.86°)
OKLaboklab(58.67% 0.0066 -0.1777)
OKLCHoklch(58.67% 0.178 272.1)
XYZxyz(23.8998, 19.1420, 75.8191)
Luminance0.1914 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FE4 #E4CF5A
analogous
#5AB4E4 #5A6FE4 #8A5AE4
triadic
#5A6FE4 #E45A6F #6FE45A
tetradic
#5A6FE4 #E45AB4 #E4CF5A #5AE48A
square
#5A6FE4 #E45AB4 #E4CF5A #5AE48A
split-complementary
#5A6FE4 #E48A5A #B4E45A
monochromatic
#1C31A8 #2541DB #5A6FE4 #8F9DED #C3CBF5

Accessibility & contrast

On white

4.35
#5A6FE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5A6FE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FE4
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FE4#FFFFFF#000000##000000
##5A6FE41.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2B7FE8
Deuteranopia (green-blind)
#0073E2
Tritanopia (blue-blind)
#008A9F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6fe4;
/* rgb */ color: rgb(90, 111, 228);
/* oklch */ color: oklch(58.7% 0.178 272.1);
Tailwind
colors: {
  custom: {
    50: '#9598ed',
    500: '#5a6fe4',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fe4;
$custom-light: #9598ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fe4",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 228
  },
  "hsl": {
    "h": 230.87,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.58674,
    "c": 0.17779,
    "h": 272.1
  },
  "luminance": 0.19144
}

Semantic roles & 50–950 ramp

primary
#5A6FE4
secondary
#E6DEB4
accent
#B612D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6FE4

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

Preview Lab → · Contrast checker → · Palette generator →

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