#798AFE#798AFE

#798AFE is a light, vivid blue. Relative luminance 0.294; OKLCH L 67.5% C 0.171 H 274.6°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#798AFE
RGBrgb(121, 138, 254)
HSLhsl(232, 99%, 74%)
HSVhsv(232, 52%, 100%)
CMYKcmyk(52.4%, 45.7%, 0%, 0.4%)
CIE-LABlab(61.13, 25.44, -59.85)
CIE-LCHlch(61.13, 65.03, 293.03°)
OKLaboklab(67.45% 0.0137 -0.1703)
OKLCHoklch(67.45% 0.171 274.6)
XYZxyz(34.8573, 29.3954, 97.5838)
Luminance0.2940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AFE #FEED79
analogous
#79CCFE #798AFE #AA79FE
triadic
#798AFE #FE798A #8AFE79
tetradic
#798AFE #FE79CC #FEED79 #79FEAA
square
#798AFE #FE79CC #FEED79 #79FEAA
split-complementary
#798AFE #FEAA79 #CCFE79
monochromatic
#0222FB #3C55FE #798AFE #B6BFFE #E1E4FF

Accessibility & contrast

On white

3.05
#798AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#798AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AFE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AFE#FFFFFF#000000##000000
##798AFE1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5699FF
Deuteranopia (green-blind)
#478EFB
Tritanopia (blue-blind)
#3BA3B8
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #798afe;
/* rgb */ color: rgb(121, 138, 254);
/* oklch */ color: oklch(67.5% 0.171 274.6);
Tailwind
colors: {
  custom: {
    50: '#a8abff',
    500: '#798afe',
    950: '#000000',
  },
}
SCSS
$custom: #798afe;
$custom-light: #a8abff;
$custom-dark: #000000;
JSON
{
  "hex": "#798afe",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 232.331,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.67453,
    "c": 0.1709,
    "h": 274.6
  },
  "luminance": 0.29398
}

Semantic roles & 50–950 ramp

primary
#798AFE
secondary
#F7F3D4
accent
#C800E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101018
muted
#7F7F86

Preview Lab

Preview with #798AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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