#5798F1#5798F1

#5798F1 is a light, vivid cyan. Relative luminance 0.308; OKLCH L 67.7% C 0.148 H 256.7°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5798F1
RGBrgb(87, 152, 241)
HSLhsl(215, 85%, 64%)
HSVhsv(215, 64%, 95%)
CMYKcmyk(63.9%, 36.9%, 0%, 5.5%)
CIE-LABlab(62.36, 6.51, -50.84)
CIE-LCHlch(62.36, 51.26, 277.29°)
OKLaboklab(67.71% -0.0341 -0.1444)
OKLCHoklch(67.71% 0.148 256.7)
XYZxyz(31.0302, 30.8306, 87.5176)
Luminance0.3083 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5798F1 #F1B057
analogous
#57E5F1 #5798F1 #6357F1
triadic
#5798F1 #F15798 #98F157
tetradic
#5798F1 #F157E5 #F1B057 #57F163
square
#5798F1 #F157E5 #F1B057 #57F163
split-complementary
#5798F1 #F16357 #E5F157
monochromatic
#1059BE #1F75EC #5798F1 #8FBBF6 #C8DDFA

Accessibility & contrast

On white

2.93
#5798F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#5798F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5798F1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5798F1#FFFFFF#000000##000000
##5798F11.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF5
Deuteranopia (green-blind)
#5B90EF
Tritanopia (blue-blind)
#00ACB9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5798f1;
/* rgb */ color: rgb(87, 152, 241);
/* oklch */ color: oklch(67.7% 0.148 256.7);
Tailwind
colors: {
  custom: {
    50: '#94b5f6',
    500: '#5798f1',
    950: '#000000',
  },
}
SCSS
$custom: #5798f1;
$custom-light: #94b5f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5798f1",
  "rgb": {
    "r": 87,
    "g": 152,
    "b": 241
  },
  "hsl": {
    "h": 214.675,
    "s": 84.615,
    "l": 64.314
  },
  "oklch": {
    "l": 0.6771,
    "c": 0.14841,
    "h": 256.7
  },
  "luminance": 0.30834
}

Semantic roles & 50–950 ramp

primary
#5798F1
secondary
#EDD6B7
accent
#8404E1
background
#F9FBFF
surface
#F2F6FE
border
#CCD0D6
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5798F1

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

Preview Lab → · Contrast checker → · Palette generator →

#5798F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva