#5798F2#5798F2

#5798F2 is a light, vivid cyan. Relative luminance 0.309; OKLCH L 67.8% C 0.150 H 256.9°. Best body text is #000000 at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5798F2
RGBrgb(87, 152, 242)
HSLhsl(215, 86%, 65%)
HSVhsv(215, 64%, 95%)
CMYKcmyk(64%, 37.2%, 0%, 5.1%)
CIE-LABlab(62.42, 6.84, -51.31)
CIE-LCHlch(62.42, 51.77, 277.60°)
OKLaboklab(67.77% -0.0338 -0.1458)
OKLCHoklch(67.77% 0.15 256.9)
XYZxyz(31.1800, 30.8905, 88.3065)
Luminance0.3089 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5798F2 #F2B157
analogous
#57E5F2 #5798F2 #6457F2
triadic
#5798F2 #F25798 #98F257
tetradic
#5798F2 #F257E5 #F2B157 #57F264
square
#5798F2 #F257E5 #F2B157 #57F264
split-complementary
#5798F2 #F26457 #E5F257
monochromatic
#0F59C0 #1E75EE #5798F2 #90BBF6 #C9DEFB

Accessibility & contrast

On white

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

On black

7.18
#5798F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5798F2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5798F2#FFFFFF#000000##000000
##5798F21.002.937.187.18
#FFFFFF2.931.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF6
Deuteranopia (green-blind)
#5A90F0
Tritanopia (blue-blind)
#00ADB9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5798f2;
/* rgb */ color: rgb(87, 152, 242);
/* oklch */ color: oklch(67.8% 0.150 256.9);
Tailwind
colors: {
  custom: {
    50: '#94b5f7',
    500: '#5798f2',
    950: '#000000',
  },
}
SCSS
$custom: #5798f2;
$custom-light: #94b5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5798f2",
  "rgb": {
    "r": 87,
    "g": 152,
    "b": 242
  },
  "hsl": {
    "h": 214.839,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.67766,
    "c": 0.14969,
    "h": 256.9
  },
  "luminance": 0.30894
}

Semantic roles & 50–950 ramp

primary
#5798F2
secondary
#EDD7B8
accent
#8503E2
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5798F2

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

Preview Lab → · Contrast checker → · Palette generator →

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