#5A71F4#5A71F4

#5A71F4 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.2% C 0.197 H 271.7°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A71F4
RGBrgb(90, 113, 244)
HSLhsl(231, 88%, 65%)
HSVhsv(231, 63%, 96%)
CMYKcmyk(63.1%, 53.7%, 0%, 4.3%)
CIE-LABlab(52.41, 31.53, -68.44)
CIE-LCHlch(52.41, 75.36, 294.74°)
OKLaboklab(60.19% 0.0058 -0.1966)
OKLCHoklch(60.19% 0.197 271.7)
XYZxyz(26.4452, 20.5133, 88.1362)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71F4 #F4DD5A
analogous
#5ABEF4 #5A71F4 #905AF4
triadic
#5A71F4 #F45A71 #71F45A
tetradic
#5A71F4 #F45ABE #F4DD5A #5AF490
square
#5A71F4 #F45ABE #F4DD5A #5AF490
split-complementary
#5A71F4 #F4905A #BEF45A
monochromatic
#0D29C6 #2140F0 #5A71F4 #93A2F8 #CDD4FC

Accessibility & contrast

On white

4.12
#5A71F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5A71F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71F4
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71F4#FFFFFF#000000##000000
##5A71F41.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0D84F9
Deuteranopia (green-blind)
#0076F1
Tritanopia (blue-blind)
#0090A8
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a71f4;
/* rgb */ color: rgb(90, 113, 244);
/* oklch */ color: oklch(60.2% 0.197 271.7);
Tailwind
colors: {
  custom: {
    50: '#9799f9',
    500: '#5a71f4',
    950: '#000000',
  },
}
SCSS
$custom: #5a71f4;
$custom-light: #9799f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71f4",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 231.039,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.60185,
    "c": 0.19667,
    "h": 271.7
  },
  "luminance": 0.20516
}

Semantic roles & 50–950 ramp

primary
#5A71F4
secondary
#EFE7BB
accent
#C201E4
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5A71F4

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

Preview Lab → · Contrast checker → · Palette generator →

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