#798DFD#798DFD

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

Color values

HEX#798DFD
RGBrgb(121, 141, 253)
HSLhsl(231, 97%, 73%)
HSVhsv(231, 52%, 99%)
CMYKcmyk(52.2%, 44.3%, 0%, 0.8%)
CIE-LABlab(61.83, 23.36, -58.18)
CIE-LCHlch(61.83, 62.70, 291.88°)
OKLaboklab(67.97% 0.0103 -0.1654)
OKLCHoklch(67.97% 0.166 273.6)
XYZxyz(35.1340, 30.2042, 96.8881)
Luminance0.3021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798DFD #FDE979
analogous
#79CFFD #798DFD #A779FD
triadic
#798DFD #FD798D #8DFD79
tetradic
#798DFD #FD79CF #FDE979 #79FDA7
square
#798DFD #FD79CF #FDE979 #79FDA7
split-complementary
#798DFD #FDA779 #CFFD79
monochromatic
#0429F8 #3D5AFC #798DFD #B5C0FE #E1E5FF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798DFD#FFFFFF#000000##000000
##798DFD1.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)
#5D9BFF
Deuteranopia (green-blind)
#4E90FB
Tritanopia (blue-blind)
#3BA5B9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798dfd;
/* rgb */ color: rgb(121, 141, 253);
/* oklch */ color: oklch(68.0% 0.166 273.6);
Tailwind
colors: {
  custom: {
    50: '#a8aeff',
    500: '#798dfd',
    950: '#000000',
  },
}
SCSS
$custom: #798dfd;
$custom-light: #a8aeff;
$custom-dark: #000000;
JSON
{
  "hex": "#798dfd",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 253
  },
  "hsl": {
    "h": 230.909,
    "s": 97.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.67969,
    "c": 0.16575,
    "h": 273.6
  },
  "luminance": 0.30207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #798DFD

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

Preview Lab → · Contrast checker → · Palette generator →

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