#798EF8#798EF8

#798EF8 is a light, vivid blue. Relative luminance 0.302; OKLCH L 67.9% C 0.158 H 273.1°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#798EF8
RGBrgb(121, 142, 248)
HSLhsl(230, 90%, 72%)
HSVhsv(230, 51%, 97%)
CMYKcmyk(51.2%, 42.7%, 0%, 2.7%)
CIE-LABlab(61.81, 21.25, -55.46)
CIE-LCHlch(61.81, 59.39, 290.96°)
OKLaboklab(67.87% 0.0085 -0.1574)
OKLCHoklch(67.87% 0.158 273.1)
XYZxyz(34.4960, 30.1860, 92.7975)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EF8 #F8E379
analogous
#79CDF8 #798EF8 #A479F8
triadic
#798EF8 #F8798E #8EF879
tetradic
#798EF8 #F879CD #F8E379 #79F8A4
square
#798EF8 #F879CD #F8E379 #79F8A4
split-complementary
#798EF8 #F8A479 #CDF879
monochromatic
#0C31EA #3F5DF5 #798EF8 #B3BFFB #E2E6FD

Accessibility & contrast

On white

2.98
#798EF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#798EF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EF8
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EF8#FFFFFF#000000##000000
##798EF81.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFC
Deuteranopia (green-blind)
#5490F6
Tritanopia (blue-blind)
#40A5B7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798ef8;
/* rgb */ color: rgb(121, 142, 248);
/* oklch */ color: oklch(67.9% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#a7aefb',
    500: '#798ef8',
    950: '#000000',
  },
}
SCSS
$custom: #798ef8;
$custom-light: #a7aefb;
$custom-dark: #000000;
JSON
{
  "hex": "#798ef8",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 248
  },
  "hsl": {
    "h": 230.079,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6787,
    "c": 0.15767,
    "h": 273.1
  },
  "luminance": 0.30188
}

Semantic roles & 50–950 ramp

primary
#798EF8
secondary
#F6F0D5
accent
#C000E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798EF8

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

Preview Lab → · Contrast checker → · Palette generator →

#798EF8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva