#5A6CE2#5A6CE2

#5A6CE2 is a mid, vivid blue. Relative luminance 0.184; OKLCH L 58.0% C 0.179 H 273.0°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5A6CE2
RGBrgb(90, 108, 226)
HSLhsl(232, 70%, 62%)
HSVhsv(232, 60%, 89%)
CMYKcmyk(60.2%, 52.2%, 0%, 11.4%)
CIE-LABlab(49.96, 28.61, -62.32)
CIE-LCHlch(49.96, 68.57, 294.66°)
OKLaboklab(57.96% 0.0094 -0.1786)
OKLCHoklch(57.96% 0.179 273)
XYZxyz(23.3019, 18.3879, 74.2580)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6CE2 #E2D05A
analogous
#5AB0E2 #5A6CE2 #8C5AE2
triadic
#5A6CE2 #E25A6C #6CE25A
tetradic
#5A6CE2 #E25AB0 #E2D05A #5AE28C
square
#5A6CE2 #E25AB0 #E2D05A #5AE28C
split-complementary
#5A6CE2 #E28C5A #B0E25A
monochromatic
#1D2FA5 #263ED9 #5A6CE2 #8E9AEB #C2C9F4

Accessibility & contrast

On white

4.49
#5A6CE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5A6CE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6CE2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6CE2#FFFFFF#000000##000000
##5A6CE21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#247DE6
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#00879D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a6ce2;
/* rgb */ color: rgb(90, 108, 226);
/* oklch */ color: oklch(58.0% 0.179 273.0);
Tailwind
colors: {
  custom: {
    50: '#9495ec',
    500: '#5a6ce2',
    950: '#000000',
  },
}
SCSS
$custom: #5a6ce2;
$custom-light: #9495ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6ce2",
  "rgb": {
    "r": 90,
    "g": 108,
    "b": 226
  },
  "hsl": {
    "h": 232.059,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57963,
    "c": 0.17887,
    "h": 273
  },
  "luminance": 0.1839
}

Semantic roles & 50–950 ramp

primary
#5A6CE2
secondary
#E5DEB3
accent
#B913D2
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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