#7998F9#7998F9

#7998F9 is a light, vivid blue. Relative luminance 0.334; OKLCH L 69.9% C 0.147 H 269.0°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#7998F9
RGBrgb(121, 152, 249)
HSLhsl(225, 91%, 73%)
HSVhsv(225, 51%, 98%)
CMYKcmyk(51.4%, 39%, 0%, 2.4%)
CIE-LABlab(64.45, 15.69, -51.82)
CIE-LCHlch(64.45, 54.14, 286.84°)
OKLaboklab(69.91% -0.0026 -0.1467)
OKLCHoklch(69.91% 0.147 269)
XYZxyz(36.2067, 33.3585, 94.1351)
Luminance0.3336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7998F9 #F9DA79
analogous
#79D8F9 #7998F9 #9A79F9
triadic
#7998F9 #F97998 #98F979
tetradic
#7998F9 #F979D8 #F9DA79 #79F99A
square
#7998F9 #F979D8 #F9DA79 #79F99A
split-complementary
#7998F9 #F99A79 #D8F979
monochromatic
#0B41ED #3E6BF6 #7998F9 #B4C5FC #E2E8FE

Accessibility & contrast

On white

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

On black

7.67
#7998F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #7998F9
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7998F9#FFFFFF#000000##000000
##7998F91.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A2FD
Deuteranopia (green-blind)
#6397F7
Tritanopia (blue-blind)
#3DADBC
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #7998f9;
/* rgb */ color: rgb(121, 152, 249);
/* oklch */ color: oklch(69.9% 0.147 269.0);
Tailwind
colors: {
  custom: {
    50: '#a7b6fc',
    500: '#7998f9',
    950: '#000000',
  },
}
SCSS
$custom: #7998f9;
$custom-light: #a7b6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#7998f9",
  "rgb": {
    "r": 121,
    "g": 152,
    "b": 249
  },
  "hsl": {
    "h": 225.469,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.69909,
    "c": 0.14674,
    "h": 269
  },
  "luminance": 0.33361
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7998F9

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

Preview Lab → · Contrast checker → · Palette generator →

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