#5B71E6#5B71E6

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

Color values

HEX#5B71E6
RGBrgb(91, 113, 230)
HSLhsl(231, 74%, 63%)
HSVhsv(231, 60%, 90%)
CMYKcmyk(60.4%, 50.9%, 0%, 9.8%)
CIE-LABlab(51.55, 27.04, -62.01)
CIE-LCHlch(51.55, 67.65, 293.56°)
OKLaboklab(59.26% 0.0059 -0.1776)
OKLCHoklch(59.26% 0.178 271.9)
XYZxyz(24.4977, 19.7456, 77.3679)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71E6 #E6D05B
analogous
#5BB6E6 #5B71E6 #8B5BE6
triadic
#5B71E6 #E65B71 #71E65B
tetradic
#5B71E6 #E65BB6 #E6D05B #5BE68B
square
#5B71E6 #E65BB6 #E6D05B #5BE68B
split-complementary
#5B71E6 #E68B5B #B6E65B
monochromatic
#1A31AC #2643DE #5B71E6 #909FEE #C5CDF6

Accessibility & contrast

On white

4.24
#5B71E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5B71E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71E6
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71E6#FFFFFF#000000##000000
##5B71E61.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E81EA
Deuteranopia (green-blind)
#0175E4
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5b71e6;
/* rgb */ color: rgb(91, 113, 230);
/* oklch */ color: oklch(59.3% 0.178 271.9);
Tailwind
colors: {
  custom: {
    50: '#9599ef',
    500: '#5b71e6',
    950: '#000000',
  },
}
SCSS
$custom: #5b71e6;
$custom-light: #9599ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71e6",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 230
  },
  "hsl": {
    "h": 230.504,
    "s": 73.545,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.17773,
    "h": 271.9
  },
  "luminance": 0.19748
}

Semantic roles & 50–950 ramp

primary
#5B71E6
secondary
#E7E0B5
accent
#B610D6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5B71E6

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

Preview Lab → · Contrast checker → · Palette generator →

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