#5791F5#5791F5

#5791F5 is a light, vivid blue. Relative luminance 0.289; OKLCH L 66.5% C 0.161 H 260.6°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5791F5
RGBrgb(87, 145, 245)
HSLhsl(218, 89%, 65%)
HSVhsv(218, 64%, 96%)
CMYKcmyk(64.5%, 40.8%, 0%, 3.9%)
CIE-LABlab(60.66, 11.98, -55.75)
CIE-LCHlch(60.66, 57.02, 282.13°)
OKLaboklab(66.46% -0.0264 -0.1589)
OKLCHoklch(66.46% 0.161 260.6)
XYZxyz(30.5315, 28.8667, 90.3313)
Luminance0.2887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791F5 #F5BB57
analogous
#57E0F5 #5791F5 #6C57F5
triadic
#5791F5 #F55791 #91F557
tetradic
#5791F5 #F557E0 #F5BB57 #57F56C
square
#5791F5 #F557E0 #F5BB57 #57F56C
split-complementary
#5791F5 #F56C57 #E0F557
monochromatic
#0C50C6 #1D6BF2 #5791F5 #91B7F8 #CBDDFC

Accessibility & contrast

On white

3.10
#5791F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#5791F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791F5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791F5#FFFFFF#000000##000000
##5791F51.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#639AF9
Deuteranopia (green-blind)
#4B8CF3
Tritanopia (blue-blind)
#00A8B7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #5791f5;
/* rgb */ color: rgb(87, 145, 245);
/* oklch */ color: oklch(66.5% 0.161 260.6);
Tailwind
colors: {
  custom: {
    50: '#95b0f9',
    500: '#5791f5',
    950: '#000000',
  },
}
SCSS
$custom: #5791f5;
$custom-light: #95b0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5791f5",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 245
  },
  "hsl": {
    "h": 217.975,
    "s": 88.764,
    "l": 65.098
  },
  "oklch": {
    "l": 0.66458,
    "c": 0.16108,
    "h": 260.6
  },
  "luminance": 0.2887
}

Semantic roles & 50–950 ramp

primary
#5791F5
secondary
#EFDBB9
accent
#9100E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E1017
muted
#7E7F85

Preview Lab

Preview with #5791F5

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

Preview Lab → · Contrast checker → · Palette generator →

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