#7998F8#7998F8

#7998F8 is a light, vivid blue. Relative luminance 0.333; OKLCH L 69.9% C 0.145 H 268.9°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#7998F8
RGBrgb(121, 152, 248)
HSLhsl(225, 90%, 72%)
HSVhsv(225, 51%, 97%)
CMYKcmyk(51.2%, 38.7%, 0%, 2.7%)
CIE-LABlab(64.40, 15.38, -51.35)
CIE-LCHlch(64.40, 53.61, 286.67°)
OKLaboklab(69.85% -0.0028 -0.1453)
OKLCHoklch(69.85% 0.145 268.9)
XYZxyz(36.0511, 33.2963, 93.3159)
Luminance0.3330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7998F8 #F8D979
analogous
#79D8F8 #7998F8 #9979F8
triadic
#7998F8 #F87998 #98F879
tetradic
#7998F8 #F879D8 #F8D979 #79F899
square
#7998F8 #F879D8 #F8D979 #79F899
split-complementary
#7998F8 #F89979 #D8F879
monochromatic
#0C42EA #3F6BF5 #7998F8 #B3C5FB #E2E9FD

Accessibility & contrast

On white

2.74
#7998F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#7998F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7998F8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7998F8#FFFFFF#000000##000000
##7998F81.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A2FC
Deuteranopia (green-blind)
#6497F6
Tritanopia (blue-blind)
#3EADBC
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #7998f8;
/* rgb */ color: rgb(121, 152, 248);
/* oklch */ color: oklch(69.9% 0.145 268.9);
Tailwind
colors: {
  custom: {
    50: '#a7b6fb',
    500: '#7998f8',
    950: '#000000',
  },
}
SCSS
$custom: #7998f8;
$custom-light: #a7b6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7998f8",
  "rgb": {
    "r": 121,
    "g": 152,
    "b": 248
  },
  "hsl": {
    "h": 225.354,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.69854,
    "c": 0.14538,
    "h": 268.9
  },
  "luminance": 0.33299
}

Semantic roles & 50–950 ramp

primary
#7998F8
secondary
#F6EED5
accent
#AD00E6
background
#FAFBFF
surface
#F4F6FF
border
#CED0D7
text
#101117
muted
#7F8085

Preview Lab

Preview with #7998F8

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

Preview Lab → · Contrast checker → · Palette generator →

#7998F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva