#5791E7#5791E7

#5791E7 is a light, vivid blue. Relative luminance 0.280; OKLCH L 65.6% C 0.143 H 258.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5791E7
RGBrgb(87, 145, 231)
HSLhsl(216, 75%, 62%)
HSVhsv(216, 62%, 91%)
CMYKcmyk(62.3%, 37.2%, 0%, 9.4%)
CIE-LABlab(59.93, 7.28, -49.18)
CIE-LCHlch(59.93, 49.72, 278.42°)
OKLaboklab(65.65% -0.0294 -0.1397)
OKLCHoklch(65.65% 0.143 258.1)
XYZxyz(28.4745, 28.0439, 79.4982)
Luminance0.2805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791E7 #E7AD57
analogous
#57D9E7 #5791E7 #6557E7
triadic
#5791E7 #E75791 #91E757
tetradic
#5791E7 #E757D9 #E7AD57 #57E765
square
#5791E7 #E757D9 #E7AD57 #57E765
split-complementary
#5791E7 #E76557 #D9E757
monochromatic
#1854AB #216EDF #5791E7 #8DB4EF #C2D7F6

Accessibility & contrast

On white

3.18
#5791E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#5791E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791E7
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791E7#FFFFFF#000000##000000
##5791E71.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C98EA
Deuteranopia (green-blind)
#588AE5
Tritanopia (blue-blind)
#00A5B1
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #5791e7;
/* rgb */ color: rgb(87, 145, 231);
/* oklch */ color: oklch(65.6% 0.143 258.1);
Tailwind
colors: {
  custom: {
    50: '#93b0ef',
    500: '#5791e7',
    950: '#000000',
  },
}
SCSS
$custom: #5791e7;
$custom-light: #93b0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5791e7",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 231
  },
  "hsl": {
    "h": 215.833,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.65649,
    "c": 0.14272,
    "h": 258.1
  },
  "luminance": 0.28047
}

Semantic roles & 50–950 ramp

primary
#5791E7
secondary
#E7D2B3
accent
#860ED7
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E1016
muted
#7E7F84

Preview Lab

Preview with #5791E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5791E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva