#5198F7#5198F7

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

Color values

HEX#5198F7
RGBrgb(81, 152, 247)
HSLhsl(214, 91%, 64%)
HSVhsv(214, 67%, 97%)
CMYKcmyk(67.2%, 38.5%, 0%, 3.1%)
CIE-LABlab(62.44, 7.57, -54.04)
CIE-LCHlch(62.44, 54.56, 277.97°)
OKLaboklab(67.8% -0.0371 -0.1539)
OKLCHoklch(67.8% 0.158 256.4)
XYZxyz(31.4040, 30.9180, 92.2904)
Luminance0.3092 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5198F7 #F7B051
analogous
#51EBF7 #5198F7 #5D51F7
triadic
#5198F7 #F75198 #98F751
tetradic
#5198F7 #F751EB #F7B051 #51F75D
square
#5198F7 #F751EB #F7B051 #51F75D
split-complementary
#5198F7 #F75D51 #EBF751
monochromatic
#0959C5 #1675F4 #5198F7 #8CBBFA #C6DDFC

Accessibility & contrast

On white

2.92
#5198F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.18
#5198F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5198F7
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5198F7#FFFFFF#000000##000000
##5198F71.002.927.187.18
#FFFFFF2.921.0021.0021.00
#0000007.1821.001.001.00
##0000007.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9FFB
Deuteranopia (green-blind)
#5490F5
Tritanopia (blue-blind)
#00AEBC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5198f7;
/* rgb */ color: rgb(81, 152, 247);
/* oklch */ color: oklch(67.8% 0.158 256.4);
Tailwind
colors: {
  custom: {
    50: '#92b5fa',
    500: '#5198f7',
    950: '#000000',
  },
}
SCSS
$custom: #5198f7;
$custom-light: #92b5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5198f7",
  "rgb": {
    "r": 81,
    "g": 152,
    "b": 247
  },
  "hsl": {
    "h": 214.337,
    "s": 91.209,
    "l": 64.314
  },
  "oklch": {
    "l": 0.67803,
    "c": 0.1583,
    "h": 256.4
  },
  "luminance": 0.30921
}

Semantic roles & 50–950 ramp

primary
#5198F7
secondary
#EFD6B5
accent
#8300E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0E1117
muted
#7E8085

Preview Lab

Preview with #5198F7

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

Preview Lab → · Contrast checker → · Palette generator →

#5198F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva