#5A71EC#5A71EC

#5A71EC is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.6% C 0.186 H 271.6°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A71EC
RGBrgb(90, 113, 236)
HSLhsl(231, 79%, 64%)
HSVhsv(231, 62%, 93%)
CMYKcmyk(61.9%, 52.1%, 0%, 7.5%)
CIE-LABlab(51.88, 28.87, -64.84)
CIE-LCHlch(51.88, 70.97, 294.00°)
OKLaboklab(59.61% 0.0054 -0.186)
OKLCHoklch(59.61% 0.186 271.6)
XYZxyz(25.2568, 20.0379, 81.8773)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71EC #ECD55A
analogous
#5ABAEC #5A71EC #8C5AEC
triadic
#5A71EC #EC5A71 #71EC5A
tetradic
#5A71EC #EC5ABA #ECD55A #5AEC8C
square
#5A71EC #EC5ABA #ECD55A #5AEC8C
split-complementary
#5A71EC #EC8C5A #BAEC5A
monochromatic
#152EB7 #2342E6 #5A71EC #91A0F2 #C8CFF9

Accessibility & contrast

On white

4.19
#5A71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5A71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71EC
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71EC#FFFFFF#000000##000000
##5A71EC1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2482F0
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5a71ec;
/* rgb */ color: rgb(90, 113, 236);
/* oklch */ color: oklch(59.6% 0.186 271.6);
Tailwind
colors: {
  custom: {
    50: '#9699f3',
    500: '#5a71ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a71ec;
$custom-light: #9699f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71ec",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 230.548,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59615,
    "c": 0.18606,
    "h": 271.6
  },
  "luminance": 0.2004
}

Semantic roles & 50–950 ramp

primary
#5A71EC
secondary
#EBE2B7
accent
#BB0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5A71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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