#5791D7#5791D7

#5791D7 is a light, vivid cyan. Relative luminance 0.272; OKLCH L 64.8% C 0.122 H 254.1°. Best body text is #000000 at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5791D7
RGBrgb(87, 145, 215)
HSLhsl(213, 62%, 59%)
HSVhsv(213, 60%, 84%)
CMYKcmyk(59.5%, 32.6%, 0%, 15.7%)
CIE-LABlab(59.14, 2.00, -41.51)
CIE-LCHlch(59.14, 41.56, 272.76°)
OKLaboklab(64.78% -0.0334 -0.1173)
OKLCHoklch(64.78% 0.122 254.1)
XYZxyz(26.3172, 27.1810, 68.1364)
Luminance0.2718 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791D7 #D79D57
analogous
#57D1D7 #5791D7 #5D57D7
triadic
#5791D7 #D75791 #91D757
tetradic
#5791D7 #D757D1 #D79D57 #57D75D
square
#5791D7 #D757D1 #D79D57 #57D75D
split-complementary
#5791D7 #D75D57 #D1D757
monochromatic
#235591 #2E71C2 #5791D7 #88B1E3 #BAD2EF

Accessibility & contrast

On white

3.26
#5791D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.44
#5791D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791D7
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791D7#FFFFFF#000000##000000
##5791D71.003.266.446.44
#FFFFFF3.261.0021.0021.00
#0000006.4421.001.001.00
##0000006.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7495DA
Deuteranopia (green-blind)
#6389D6
Tritanopia (blue-blind)
#00A1AA
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5791d7;
/* rgb */ color: rgb(87, 145, 215);
/* oklch */ color: oklch(64.8% 0.122 254.1);
Tailwind
colors: {
  custom: {
    50: '#90b0e3',
    500: '#5791d7',
    950: '#000000',
  },
}
SCSS
$custom: #5791d7;
$custom-light: #90b0e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5791d7",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 215
  },
  "hsl": {
    "h": 212.813,
    "s": 61.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.64777,
    "c": 0.12195,
    "h": 254.1
  },
  "luminance": 0.27183
}

Semantic roles & 50–950 ramp

primary
#5791D7
secondary
#DEC7AC
accent
#9B43E5
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0E1015
muted
#7E7F83

Preview Lab

Preview with #5791D7

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

Preview Lab → · Contrast checker → · Palette generator →

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