#798EFE#798EFE

#798EFE is a light, vivid blue. Relative luminance 0.306; OKLCH L 68.2% C 0.166 H 273.2°. Best body text is #000000 at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#798EFE
RGBrgb(121, 142, 254)
HSLhsl(231, 99%, 74%)
HSVhsv(231, 52%, 100%)
CMYKcmyk(52.4%, 44.1%, 0%, 0.4%)
CIE-LABlab(62.14, 23.08, -58.23)
CIE-LCHlch(62.14, 62.64, 291.62°)
OKLaboklab(68.22% 0.0094 -0.1656)
OKLCHoklch(68.22% 0.166 273.2)
XYZxyz(35.4418, 30.5643, 97.7786)
Luminance0.3057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EFE #FEE979
analogous
#79D1FE #798EFE #A679FE
triadic
#798EFE #FE798E #8EFE79
tetradic
#798EFE #FE79D1 #FEE979 #79FEA6
square
#798EFE #FE79D1 #FEE979 #79FEA6
split-complementary
#798EFE #FEA679 #D1FE79
monochromatic
#0229FB #3C5BFE #798EFE #B6C1FE #E1E5FF

Accessibility & contrast

On white

2.95
#798EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.11
#798EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EFE
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EFE#FFFFFF#000000##000000
##798EFE1.002.957.117.11
#FFFFFF2.951.0021.0021.00
#0000007.1121.001.001.00
##0000007.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E9CFF
Deuteranopia (green-blind)
#4E91FC
Tritanopia (blue-blind)
#3AA6BA
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #798efe;
/* rgb */ color: rgb(121, 142, 254);
/* oklch */ color: oklch(68.2% 0.166 273.2);
Tailwind
colors: {
  custom: {
    50: '#a8aeff',
    500: '#798efe',
    950: '#000000',
  },
}
SCSS
$custom: #798efe;
$custom-light: #a8aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#798efe",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 230.526,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.68222,
    "c": 0.16585,
    "h": 273.2
  },
  "luminance": 0.30567
}

Semantic roles & 50–950 ramp

primary
#798EFE
secondary
#F7F2D4
accent
#C100E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101018
muted
#7F7F86

Preview Lab

Preview with #798EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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