#5A70EC#5A70EC

#5A70EC is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.4% C 0.187 H 271.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A70EC
RGBrgb(90, 112, 236)
HSLhsl(231, 79%, 64%)
HSVhsv(231, 62%, 93%)
CMYKcmyk(61.9%, 52.5%, 0%, 7.5%)
CIE-LABlab(51.63, 29.48, -65.24)
CIE-LCHlch(51.63, 71.59, 294.31°)
OKLaboklab(59.43% 0.0063 -0.1872)
OKLCHoklch(59.43% 0.187 271.9)
XYZxyz(25.1459, 19.8160, 81.8403)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A70EC #ECD65A
analogous
#5AB9EC #5A70EC #8D5AEC
triadic
#5A70EC #EC5A70 #70EC5A
tetradic
#5A70EC #EC5AB9 #ECD65A #5AEC8D
square
#5A70EC #EC5AB9 #ECD65A #5AEC8D
split-complementary
#5A70EC #EC8D5A #B9EC5A
monochromatic
#152DB7 #2340E6 #5A70EC #91A0F2 #C8CFF9

Accessibility & contrast

On white

4.23
#5A70EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5A70EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A70EC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A70EC#FFFFFF#000000##000000
##5A70EC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2082F0
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a70ec;
/* rgb */ color: rgb(90, 112, 236);
/* oklch */ color: oklch(59.4% 0.187 271.9);
Tailwind
colors: {
  custom: {
    50: '#9698f3',
    500: '#5a70ec',
    950: '#000000',
  },
}
SCSS
$custom: #5a70ec;
$custom-light: #9698f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a70ec",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 236
  },
  "hsl": {
    "h": 230.959,
    "s": 79.348,
    "l": 63.922
  },
  "oklch": {
    "l": 0.59425,
    "c": 0.18729,
    "h": 271.9
  },
  "luminance": 0.19818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A70EC

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

Preview Lab → · Contrast checker → · Palette generator →

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