#5791D2#5791D2

#5791D2 is a light, moderate cyan. Relative luminance 0.269; OKLCH L 64.5% C 0.116 H 252.5°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#5791D2
RGBrgb(87, 145, 210)
HSLhsl(212, 58%, 58%)
HSVhsv(212, 59%, 82%)
CMYKcmyk(58.6%, 31%, 0%, 17.6%)
CIE-LABlab(58.91, 0.38, -39.08)
CIE-LCHlch(58.91, 39.08, 270.56°)
OKLaboklab(64.52% -0.0348 -0.1102)
OKLCHoklch(64.52% 0.116 252.5)
XYZxyz(25.6846, 26.9279, 64.8043)
Luminance0.2693 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791D2 #D29857
analogous
#57CED2 #5791D2 #5A57D2
triadic
#5791D2 #D25791 #91D257
tetradic
#5791D2 #D257CE #D29857 #57D25A
square
#5791D2 #D257CE #D29857 #57D25A
split-complementary
#5791D2 #D25A57 #CED257
monochromatic
#25548A #3272BA #5791D2 #87B1DF #B8D0EC

Accessibility & contrast

On white

3.29
#5791D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#5791D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791D2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791D2#FFFFFF#000000##000000
##5791D21.003.296.396.39
#FFFFFF3.291.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7694D5
Deuteranopia (green-blind)
#6688D1
Tritanopia (blue-blind)
#00A0A8
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5791d2;
/* rgb */ color: rgb(87, 145, 210);
/* oklch */ color: oklch(64.5% 0.116 252.5);
Tailwind
colors: {
  custom: {
    50: '#90b1e0',
    500: '#5791d2',
    950: '#000000',
  },
}
SCSS
$custom: #5791d2;
$custom-light: #90b1e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5791d2",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 210
  },
  "hsl": {
    "h": 211.707,
    "s": 57.746,
    "l": 58.235
  },
  "oklch": {
    "l": 0.64517,
    "c": 0.11558,
    "h": 252.5
  },
  "luminance": 0.2693
}

Semantic roles & 50–950 ramp

primary
#5791D2
secondary
#DBC4AA
accent
#9847E1
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D1015
muted
#7E7F83

Preview Lab

Preview with #5791D2

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

Preview Lab → · Contrast checker → · Palette generator →

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