#5A71CD#5A71CD

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

Color values

HEX#5A71CD
RGBrgb(90, 113, 205)
HSLhsl(228, 53%, 58%)
HSVhsv(228, 56%, 80%)
CMYKcmyk(56.1%, 44.9%, 0%, 19.6%)
CIE-LABlab(49.97, 18.59, -50.40)
CIE-LCHlch(49.97, 53.72, 290.25°)
OKLaboklab(57.55% 0.0019 -0.1435)
OKLCHoklch(57.55% 0.144 270.8)
XYZxyz(21.1374, 18.3901, 60.1816)
Luminance0.1839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71CD #CDB65A
analogous
#5AAACD #5A71CD #7C5ACD
triadic
#5A71CD #CD5A71 #71CD5A
tetradic
#5A71CD #CD5AAA #CDB65A #5ACD7C
square
#5A71CD #CD5AAA #CDB65A #5ACD7C
split-complementary
#5A71CD #CD7C5A #AACD5A
monochromatic
#283B84 #364FB3 #5A71CD #8999DB #B8C2E9

Accessibility & contrast

On white

4.49
#5A71CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5A71CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71CD
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71CD#FFFFFF#000000##000000
##5A71CD1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CD0
Deuteranopia (green-blind)
#3972CB
Tritanopia (blue-blind)
#138595
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a71cd;
/* rgb */ color: rgb(90, 113, 205);
/* oklch */ color: oklch(57.5% 0.144 270.8);
Tailwind
colors: {
  custom: {
    50: '#9199dd',
    500: '#5a71cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a71cd;
$custom-light: #9199dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71cd",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 228,
    "s": 53.488,
    "l": 57.843
  },
  "oklch": {
    "l": 0.57549,
    "c": 0.14354,
    "h": 270.8
  },
  "luminance": 0.18392
}

Semantic roles & 50–950 ramp

primary
#5A71CD
secondary
#D8CFAA
accent
#C04BDD
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5A71CD

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

Preview Lab → · Contrast checker → · Palette generator →

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