#5A6FE6#5A6FE6

#5A6FE6 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.180 H 272.2°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5A6FE6
RGBrgb(90, 111, 230)
HSLhsl(231, 74%, 63%)
HSVhsv(231, 61%, 90%)
CMYKcmyk(60.9%, 51.7%, 0%, 9.8%)
CIE-LABlab(50.98, 28.10, -62.92)
CIE-LCHlch(50.98, 68.91, 294.06°)
OKLaboklab(58.81% 0.0068 -0.1804)
OKLCHoklch(58.81% 0.181 272.2)
XYZxyz(24.1791, 19.2537, 77.2897)
Luminance0.1926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FE6 #E6D15A
analogous
#5AB5E6 #5A6FE6 #8B5AE6
triadic
#5A6FE6 #E65A6F #6FE65A
tetradic
#5A6FE6 #E65AB5 #E6D15A #5AE68B
square
#5A6FE6 #E65AB5 #E6D15A #5AE68B
split-complementary
#5A6FE6 #E68B5A #B5E65A
monochromatic
#1A30AC #2541DE #5A6FE6 #8F9DEE #C4CCF6

Accessibility & contrast

On white

4.33
#5A6FE6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5A6FE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FE6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FE6#FFFFFF#000000##000000
##5A6FE61.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2880EA
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a6fe6;
/* rgb */ color: rgb(90, 111, 230);
/* oklch */ color: oklch(58.8% 0.180 272.2);
Tailwind
colors: {
  custom: {
    50: '#9598ef',
    500: '#5a6fe6',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fe6;
$custom-light: #9598ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fe6",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 230
  },
  "hsl": {
    "h": 231,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.58814,
    "c": 0.1805,
    "h": 272.2
  },
  "luminance": 0.19256
}

Semantic roles & 50–950 ramp

primary
#5A6FE6
secondary
#E7E0B5
accent
#B810D6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A6FE6

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

Preview Lab → · Contrast checker → · Palette generator →

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