#5A6DE2#5A6DE2

#5A6DE2 is a mid, vivid blue. Relative luminance 0.186; OKLCH L 58.2% C 0.178 H 272.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5A6DE2
RGBrgb(90, 109, 226)
HSLhsl(232, 70%, 62%)
HSVhsv(232, 60%, 89%)
CMYKcmyk(60.2%, 51.8%, 0%, 11.4%)
CIE-LABlab(50.22, 28.00, -61.91)
CIE-LCHlch(50.22, 67.94, 294.33°)
OKLaboklab(58.15% 0.0084 -0.1774)
OKLCHoklch(58.15% 0.178 272.7)
XYZxyz(23.4080, 18.6000, 74.2934)
Luminance0.1860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6DE2 #E2CF5A
analogous
#5AB1E2 #5A6DE2 #8B5AE2
triadic
#5A6DE2 #E25A6D #6DE25A
tetradic
#5A6DE2 #E25AB1 #E2CF5A #5AE28B
square
#5A6DE2 #E25AB1 #E2CF5A #5AE28B
split-complementary
#5A6DE2 #E28B5A #B1E25A
monochromatic
#1D30A5 #263FD9 #5A6DE2 #8E9BEB #C2C9F4

Accessibility & contrast

On white

4.45
#5A6DE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#5A6DE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6DE2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6DE2#FFFFFF#000000##000000
##5A6DE21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#277EE6
Deuteranopia (green-blind)
#0072E0
Tritanopia (blue-blind)
#00889D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a6de2;
/* rgb */ color: rgb(90, 109, 226);
/* oklch */ color: oklch(58.2% 0.178 272.7);
Tailwind
colors: {
  custom: {
    50: '#9496ec',
    500: '#5a6de2',
    950: '#000000',
  },
}
SCSS
$custom: #5a6de2;
$custom-light: #9496ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6de2",
  "rgb": {
    "r": 90,
    "g": 109,
    "b": 226
  },
  "hsl": {
    "h": 231.618,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58153,
    "c": 0.1776,
    "h": 272.7
  },
  "luminance": 0.18602
}

Semantic roles & 50–950 ramp

primary
#5A6DE2
secondary
#E5DEB3
accent
#B713D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6DE2

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

Preview Lab → · Contrast checker → · Palette generator →

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