#5B71E4#5B71E4

#5B71E4 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.175 H 271.9°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5B71E4
RGBrgb(91, 113, 228)
HSLhsl(230, 72%, 63%)
HSVhsv(230, 60%, 89%)
CMYKcmyk(60.1%, 50.4%, 0%, 10.6%)
CIE-LABlab(51.42, 26.38, -61.09)
CIE-LCHlch(51.42, 66.54, 293.36°)
OKLaboklab(59.12% 0.0057 -0.1749)
OKLCHoklch(59.12% 0.175 271.9)
XYZxyz(24.2184, 19.6339, 75.8972)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E4 #E4CE5B
analogous
#5BB5E4 #5B71E4 #895BE4
triadic
#5B71E4 #E45B71 #71E45B
tetradic
#5B71E4 #E45BB5 #E4CE5B #5BE489
square
#5B71E4 #E45BB5 #E4CE5B #5BE489
split-complementary
#5B71E4 #E4895B #B5E45B
monochromatic
#1C32A9 #2644DB #5B71E4 #909EED #C4CCF5

Accessibility & contrast

On white

4.26
#5B71E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5B71E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E4#FFFFFF#000000##000000
##5B71E41.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3181E8
Deuteranopia (green-blind)
#0C75E2
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71e4;
/* rgb */ color: rgb(91, 113, 228);
/* oklch */ color: oklch(59.1% 0.175 271.9);
Tailwind
colors: {
  custom: {
    50: '#9599ed',
    500: '#5b71e4',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e4;
$custom-light: #9599ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e4",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 230.365,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59118,
    "c": 0.17502,
    "h": 271.9
  },
  "luminance": 0.19636
}

Semantic roles & 50–950 ramp

primary
#5B71E4
secondary
#E6DEB4
accent
#B512D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71E4

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

Preview Lab → · Contrast checker → · Palette generator →

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