#5791D5#5791D5

#5791D5 is a light, moderate cyan. Relative luminance 0.271; OKLCH L 64.7% C 0.119 H 253.5°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5791D5
RGBrgb(87, 145, 213)
HSLhsl(212, 60%, 59%)
HSVhsv(212, 59%, 84%)
CMYKcmyk(59.2%, 31.9%, 0%, 16.5%)
CIE-LABlab(59.05, 1.35, -40.54)
CIE-LCHlch(59.05, 40.57, 271.91°)
OKLaboklab(64.67% -0.034 -0.1144)
OKLCHoklch(64.67% 0.119 253.5)
XYZxyz(26.0618, 27.0788, 66.7912)
Luminance0.2708 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5791D5 #D59B57
analogous
#57D0D5 #5791D5 #5C57D5
triadic
#5791D5 #D55791 #91D557
tetradic
#5791D5 #D557D0 #D59B57 #57D55C
square
#5791D5 #D557D0 #D59B57 #57D55C
split-complementary
#5791D5 #D55C57 #D0D557
monochromatic
#24558E #3072BF #5791D5 #88B1E1 #B9D1ED

Accessibility & contrast

On white

3.27
#5791D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#5791D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5791D5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5791D5#FFFFFF#000000##000000
##5791D51.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7495D8
Deuteranopia (green-blind)
#6489D4
Tritanopia (blue-blind)
#00A1A9
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #5791d5;
/* rgb */ color: rgb(87, 145, 213);
/* oklch */ color: oklch(64.7% 0.119 253.5);
Tailwind
colors: {
  custom: {
    50: '#90b0e2',
    500: '#5791d5',
    950: '#000000',
  },
}
SCSS
$custom: #5791d5;
$custom-light: #90b0e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5791d5",
  "rgb": {
    "r": 87,
    "g": 145,
    "b": 213
  },
  "hsl": {
    "h": 212.381,
    "s": 60,
    "l": 58.824
  },
  "oklch": {
    "l": 0.64673,
    "c": 0.11938,
    "h": 253.5
  },
  "luminance": 0.27081
}

Semantic roles & 50–950 ramp

primary
#5791D5
secondary
#DDC6AB
accent
#9A45E3
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0D1015
muted
#7E7F83

Preview Lab

Preview with #5791D5

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

Preview Lab → · Contrast checker → · Palette generator →

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