#5B71E5#5B71E5

#5B71E5 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.2% C 0.176 H 271.9°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5B71E5
RGBrgb(91, 113, 229)
HSLhsl(230, 73%, 63%)
HSVhsv(230, 60%, 90%)
CMYKcmyk(60.3%, 50.7%, 0%, 10.2%)
CIE-LABlab(51.48, 26.71, -61.55)
CIE-LCHlch(51.48, 67.09, 293.46°)
OKLaboklab(59.19% 0.0058 -0.1763)
OKLCHoklch(59.19% 0.176 271.9)
XYZxyz(24.3577, 19.6896, 76.6304)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E5 #E5CF5B
analogous
#5BB6E5 #5B71E5 #8A5BE5
triadic
#5B71E5 #E55B71 #71E55B
tetradic
#5B71E5 #E55BB6 #E5CF5B #5BE58A
square
#5B71E5 #E55BB6 #E5CF5B #5BE58A
split-complementary
#5B71E5 #E58A5B #B6E55B
monochromatic
#1B32AB #2643DD #5B71E5 #909FED #C5CCF6

Accessibility & contrast

On white

4.25
#5B71E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5B71E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E5
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E5#FFFFFF#000000##000000
##5B71E51.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3081E9
Deuteranopia (green-blind)
#0675E3
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71e5;
/* rgb */ color: rgb(91, 113, 229);
/* oklch */ color: oklch(59.2% 0.176 271.9);
Tailwind
colors: {
  custom: {
    50: '#9599ee',
    500: '#5b71e5',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e5;
$custom-light: #9599ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e5",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 230.435,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.59187,
    "c": 0.17638,
    "h": 271.9
  },
  "luminance": 0.19692
}

Semantic roles & 50–950 ramp

primary
#5B71E5
secondary
#E7DFB5
accent
#B511D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71E5

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

Preview Lab → · Contrast checker → · Palette generator →

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