#5A6FEC#5A6FEC

#5A6FEC is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.2% C 0.189 H 272.2°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5A6FEC
RGBrgb(90, 111, 236)
HSLhsl(231, 79%, 64%)
HSVhsv(231, 62%, 93%)
CMYKcmyk(61.9%, 53%, 0%, 7.5%)
CIE-LABlab(51.38, 30.09, -65.65)
CIE-LCHlch(51.38, 72.22, 294.63°)
OKLaboklab(59.24% 0.0072 -0.1884)
OKLCHoklch(59.24% 0.189 272.2)
XYZxyz(25.0362, 19.5966, 81.8038)
Luminance0.1960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6FEC #ECD75A
analogous
#5AB8EC #5A6FEC #8E5AEC
triadic
#5A6FEC #EC5A6F #6FEC5A
tetradic
#5A6FEC #EC5AB8 #ECD75A #5AEC8E
square
#5A6FEC #EC5AB8 #ECD75A #5AEC8E
split-complementary
#5A6FEC #EC8E5A #B8EC5A
monochromatic
#152CB7 #233FE6 #5A6FEC #919FF2 #C8CFF9

Accessibility & contrast

On white

4.27
#5A6FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5A6FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A6FEC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6FEC#FFFFFF#000000##000000
##5A6FEC1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B81F0
Deuteranopia (green-blind)
#0074E9
Tritanopia (blue-blind)
#008CA3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a6fec;
/* rgb */ color: rgb(90, 111, 236);
/* oklch */ color: oklch(59.2% 0.189 272.2);
Tailwind
colors: {
  custom: {
    50: '#9698f3',
    500: '#5a6fec',
    950: '#000000',
  },
}
SCSS
$custom: #5a6fec;
$custom-light: #9698f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6fec",
  "rgb": {
    "r": 90,
    "g": 111,
    "b": 236
  },
  "hsl": {
    "h": 231.37,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59237,
    "c": 0.18853,
    "h": 272.2
  },
  "luminance": 0.19599
}

Semantic roles & 50–950 ramp

primary
#5A6FEC
secondary
#EBE3B7
accent
#BD0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A6FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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