#5B71F0#5B71F0

#5B71F0 is a mid, vivid blue. Relative luminance 0.203; OKLCH L 60.0% C 0.191 H 272.0°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B71F0
RGBrgb(91, 113, 240)
HSLhsl(231, 83%, 65%)
HSVhsv(231, 62%, 94%)
CMYKcmyk(62.1%, 52.9%, 0%, 5.9%)
CIE-LABlab(52.20, 30.37, -66.55)
CIE-LCHlch(52.20, 73.15, 294.53°)
OKLaboklab(59.96% 0.0066 -0.191)
OKLCHoklch(59.96% 0.191 272)
XYZxyz(25.9424, 20.3235, 84.9769)
Luminance0.2033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B71F0 #F0DA5B
analogous
#5BBBF0 #5B71F0 #905BF0
triadic
#5B71F0 #F05B71 #71F05B
tetradic
#5B71F0 #F05BBB #F0DA5B #5BF090
square
#5B71F0 #F05BBB #F0DA5B #5BF090
split-complementary
#5B71F0 #F0905B #BBF05B
monochromatic
#112BBF #2340EB #5B71F0 #93A2F5 #CBD2FA

Accessibility & contrast

On white

4.15
#5B71F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#5B71F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B71F0
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B71F0#FFFFFF#000000##000000
##5B71F01.004.155.075.07
#FFFFFF4.151.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B83F4
Deuteranopia (green-blind)
#0076ED
Tritanopia (blue-blind)
#008FA6
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5b71f0;
/* rgb */ color: rgb(91, 113, 240);
/* oklch */ color: oklch(60.0% 0.191 272.0);
Tailwind
colors: {
  custom: {
    50: '#9799f6',
    500: '#5b71f0',
    950: '#000000',
  },
}
SCSS
$custom: #5b71f0;
$custom-light: #9799f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b71f0",
  "rgb": {
    "r": 91,
    "g": 113,
    "b": 240
  },
  "hsl": {
    "h": 231.141,
    "s": 83.24,
    "l": 64.902
  },
  "oklch": {
    "l": 0.59955,
    "c": 0.19111,
    "h": 272
  },
  "luminance": 0.20326
}

Semantic roles & 50–950 ramp

primary
#5B71F0
secondary
#EDE5BA
accent
#C006E0
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0D17
muted
#7F7E85

Preview Lab

Preview with #5B71F0

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

Preview Lab → · Contrast checker → · Palette generator →

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