#5791DC#5791DC

#5791DC is a light, vivid cyan. Relative luminance 0.274; OKLCH L 65.0% C 0.128 H 255.5°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5791DC
RGBrgb(87, 145, 220)
HSLhsl(214, 66%, 60%)
HSVhsv(214, 60%, 86%)
CMYKcmyk(60.5%, 34.1%, 0%, 13.7%)
CIE-LABlab(59.38, 3.64, -43.93)
CIE-LCHlch(59.38, 44.08, 274.74°)
OKLaboklab(65.04% -0.0321 -0.1243)
OKLCHoklch(65.04% 0.128 255.5)
XYZxyz(26.9695, 27.4419, 71.5718)
Luminance0.2744 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791DC #DCA257
analogous
#57D3DC #5791DC #6057DC
triadic
#5791DC #DC5791 #91DC57
tetradic
#5791DC #DC57D3 #DCA257 #57DC60
square
#5791DC #DC57D3 #DCA257 #57DC60
split-complementary
#5791DC #DC6057 #D3DC57
monochromatic
#205599 #2A71CB #5791DC #8AB2E7 #BCD3F1

Accessibility & contrast

On white

3.24
#5791DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#5791DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791DC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791DC#FFFFFF#000000##000000
##5791DC1.003.246.496.49
#FFFFFF3.241.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7196DF
Deuteranopia (green-blind)
#5F89DA
Tritanopia (blue-blind)
#00A2AC
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #5791dc;
/* rgb */ color: rgb(87, 145, 220);
/* oklch */ color: oklch(65.0% 0.128 255.5);
Tailwind
colors: {
  custom: {
    50: '#91b0e7',
    500: '#5791dc',
    950: '#000000',
  },
}
SCSS
$custom: #5791dc;
$custom-light: #91b0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5791dc",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 220
  },
  "hsl": {
    "h": 213.835,
    "s": 65.517,
    "l": 60.196
  },
  "oklch": {
    "l": 0.65043,
    "c": 0.12839,
    "h": 255.5
  },
  "luminance": 0.27444
}

Semantic roles & 50–950 ramp

primary
#5791DC
secondary
#E1CBAE
accent
#7E18CD
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0E1016
muted
#7E7F84

Preview Lab

Preview with #5791DC

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

Preview Lab → · Contrast checker → · Palette generator →

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