#5B71E7#5B71E7

#5B71E7 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.179 H 271.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5B71E7
RGBrgb(91, 113, 231)
HSLhsl(231, 74%, 63%)
HSVhsv(231, 61%, 91%)
CMYKcmyk(60.6%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.61, 27.37, -62.46)
CIE-LCHlch(51.61, 68.20, 293.66°)
OKLaboklab(59.33% 0.006 -0.179)
OKLCHoklch(59.33% 0.179 271.9)
XYZxyz(24.6385, 19.8019, 78.1096)
Luminance0.1980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E7 #E7D15B
analogous
#5BB7E7 #5B71E7 #8B5BE7
triadic
#5B71E7 #E75B71 #71E75B
tetradic
#5B71E7 #E75BB7 #E7D15B #5BE78B
square
#5B71E7 #E75BB7 #E7D15B #5BE78B
split-complementary
#5B71E7 #E78B5B #B7E75B
monochromatic
#1931AE #2643DF #5B71E7 #909FEF #C6CDF7

Accessibility & contrast

On white

4.23
#5B71E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5B71E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E7#FFFFFF#000000##000000
##5B71E71.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D81EB
Deuteranopia (green-blind)
#0075E5
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71e7;
/* rgb */ color: rgb(91, 113, 231);
/* oklch */ color: oklch(59.3% 0.179 271.9);
Tailwind
colors: {
  custom: {
    50: '#9699ef',
    500: '#5b71e7',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e7;
$custom-light: #9699ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e7",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 230.571,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.59325,
    "c": 0.17907,
    "h": 271.9
  },
  "luminance": 0.19804
}

Semantic roles & 50–950 ramp

primary
#5B71E7
secondary
#E8E0B6
accent
#B70FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5B71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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