#5791F7#5791F7

#5791F7 is a light, vivid blue. Relative luminance 0.290; OKLCH L 66.6% C 0.164 H 260.9°. Best body text is #000000 at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5791F7
RGBrgb(87, 145, 247)
HSLhsl(218, 91%, 65%)
HSVhsv(218, 65%, 97%)
CMYKcmyk(64.8%, 41.3%, 0%, 3.1%)
CIE-LABlab(60.77, 12.66, -56.68)
CIE-LCHlch(60.77, 58.07, 282.59°)
OKLaboklab(66.58% -0.026 -0.1616)
OKLCHoklch(66.58% 0.164 260.9)
XYZxyz(30.8384, 28.9895, 91.9480)
Luminance0.2899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791F7 #F7BD57
analogous
#57E1F7 #5791F7 #6D57F7
triadic
#5791F7 #F75791 #91F757
tetradic
#5791F7 #F757E1 #F7BD57 #57F76D
square
#5791F7 #F757E1 #F7BD57 #57F76D
split-complementary
#5791F7 #F76D57 #E1F757
monochromatic
#0A4FCA #1D6BF4 #5791F7 #91B7FA #CCDDFD

Accessibility & contrast

On white

3.09
#5791F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.80
#5791F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791F7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791F7#FFFFFF#000000##000000
##5791F71.003.096.806.80
#FFFFFF3.091.0021.0021.00
#0000006.8021.001.001.00
##0000006.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFB
Deuteranopia (green-blind)
#498CF5
Tritanopia (blue-blind)
#00A8B8
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #5791f7;
/* rgb */ color: rgb(87, 145, 247);
/* oklch */ color: oklch(66.6% 0.164 260.9);
Tailwind
colors: {
  custom: {
    50: '#95b0fa',
    500: '#5791f7',
    950: '#000000',
  },
}
SCSS
$custom: #5791f7;
$custom-light: #95b0fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5791f7",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 247
  },
  "hsl": {
    "h": 218.25,
    "s": 90.909,
    "l": 65.49
  },
  "oklch": {
    "l": 0.66577,
    "c": 0.1637,
    "h": 260.9
  },
  "luminance": 0.28992
}

Semantic roles & 50–950 ramp

primary
#5791F7
secondary
#F0DCBA
accent
#9200E6
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F1017
muted
#7E7F85

Preview Lab

Preview with #5791F7

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

Preview Lab → · Contrast checker → · Palette generator →

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