#5B71EC#5B71EC

#5B71EC is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.7% C 0.186 H 272.0°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5B71EC
RGBrgb(91, 113, 236)
HSLhsl(231, 79%, 64%)
HSVhsv(231, 61%, 93%)
CMYKcmyk(61.4%, 52.1%, 0%, 7.5%)
CIE-LABlab(51.94, 29.04, -64.74)
CIE-LCHlch(51.94, 70.95, 294.16°)
OKLaboklab(59.67% 0.0064 -0.1857)
OKLCHoklch(59.67% 0.186 272)
XYZxyz(25.3548, 20.0884, 81.8819)
Luminance0.2009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71EC #ECD65B
analogous
#5BB9EC #5B71EC #8E5BEC
triadic
#5B71EC #EC5B71 #71EC5B
tetradic
#5B71EC #EC5BB9 #ECD65B #5BEC8E
square
#5B71EC #EC5BB9 #ECD65B #5BEC8E
split-complementary
#5B71EC #EC8E5B #B9EC5B
monochromatic
#152EB7 #2442E6 #5B71EC #92A0F2 #C9D0F9

Accessibility & contrast

On white

4.18
#5B71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5B71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71EC
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71EC#FFFFFF#000000##000000
##5B71EC1.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2482F0
Deuteranopia (green-blind)
#0076E9
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b71ec;
/* rgb */ color: rgb(91, 113, 236);
/* oklch */ color: oklch(59.7% 0.186 272.0);
Tailwind
colors: {
  custom: {
    50: '#9699f3',
    500: '#5b71ec',
    950: '#000000',
  },
}
SCSS
$custom: #5b71ec;
$custom-light: #9699f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71ec",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 230.897,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.59673,
    "c": 0.18579,
    "h": 272
  },
  "luminance": 0.20091
}

Semantic roles & 50–950 ramp

primary
#5B71EC
secondary
#EBE3B8
accent
#BC0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0F0D17
muted
#7E7E85

Preview Lab

Preview with #5B71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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