#5A71CE#5A71CE

#5A71CE is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.6% C 0.145 H 270.8°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5A71CE
RGBrgb(90, 113, 206)
HSLhsl(228, 54%, 58%)
HSVhsv(228, 56%, 81%)
CMYKcmyk(56.3%, 45.1%, 0%, 19.2%)
CIE-LABlab(50.02, 18.92, -50.88)
CIE-LCHlch(50.02, 54.28, 290.40°)
OKLaboklab(57.61% 0.0021 -0.1449)
OKLCHoklch(57.61% 0.145 270.8)
XYZxyz(21.2585, 18.4386, 60.8193)
Luminance0.1844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71CE #CEB75A
analogous
#5AABCE #5A71CE #7D5ACE
triadic
#5A71CE #CE5A71 #71CE5A
tetradic
#5A71CE #CE5AAB #CEB75A #5ACE7D
square
#5A71CE #CE5AAB #CEB75A #5ACE7D
split-complementary
#5A71CE #CE7D5A #ABCE5A
monochromatic
#283A86 #364FB5 #5A71CE #899ADC #B8C2EA

Accessibility & contrast

On white

4.48
#5A71CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5A71CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71CE
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71CE#FFFFFF#000000##000000
##5A71CE1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#477CD1
Deuteranopia (green-blind)
#3872CC
Tritanopia (blue-blind)
#108695
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a71ce;
/* rgb */ color: rgb(90, 113, 206);
/* oklch */ color: oklch(57.6% 0.145 270.8);
Tailwind
colors: {
  custom: {
    50: '#9199dd',
    500: '#5a71ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a71ce;
$custom-light: #9199dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71ce",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 228.103,
    "s": 54.206,
    "l": 58.039
  },
  "oklch": {
    "l": 0.57611,
    "c": 0.14494,
    "h": 270.8
  },
  "luminance": 0.1844
}

Semantic roles & 50–950 ramp

primary
#5A71CE
secondary
#D9D0AB
accent
#C04ADE
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5A71CE

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

Preview Lab → · Contrast checker → · Palette generator →

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