#798EF7#798EF7

#798EF7 is a light, vivid blue. Relative luminance 0.301; OKLCH L 67.8% C 0.156 H 273.0°. Best body text is #000000 at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#798EF7
RGBrgb(121, 142, 247)
HSLhsl(230, 89%, 72%)
HSVhsv(230, 51%, 97%)
CMYKcmyk(51%, 42.5%, 0%, 3.1%)
CIE-LABlab(61.76, 20.94, -54.99)
CIE-LCHlch(61.76, 58.85, 290.85°)
OKLaboklab(67.81% 0.0083 -0.1561)
OKLCHoklch(67.81% 0.156 273)
XYZxyz(34.3413, 30.1241, 91.9826)
Luminance0.3013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EF7 #F7E279
analogous
#79CDF7 #798EF7 #A379F7
triadic
#798EF7 #F7798E #8EF779
tetradic
#798EF7 #F779CD #F7E279 #79F7A3
square
#798EF7 #F779CD #F7E279 #79F7A3
split-complementary
#798EF7 #F7A379 #CDF779
monochromatic
#0E32E8 #3F5DF4 #798EF7 #B3BFFA #E2E7FD

Accessibility & contrast

On white

2.99
#798EF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.03
#798EF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EF7
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EF7#FFFFFF#000000##000000
##798EF71.002.997.037.03
#FFFFFF2.991.0021.0021.00
#0000007.0321.001.001.00
##0000007.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#629BFB
Deuteranopia (green-blind)
#5590F5
Tritanopia (blue-blind)
#41A5B6
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798ef7;
/* rgb */ color: rgb(121, 142, 247);
/* oklch */ color: oklch(67.8% 0.156 273.0);
Tailwind
colors: {
  custom: {
    50: '#a7aefa',
    500: '#798ef7',
    950: '#000000',
  },
}
SCSS
$custom: #798ef7;
$custom-light: #a7aefa;
$custom-dark: #000000;
JSON
{
  "hex": "#798ef7",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 247
  },
  "hsl": {
    "h": 230,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67812,
    "c": 0.1563,
    "h": 273
  },
  "luminance": 0.30126
}

Semantic roles & 50–950 ramp

primary
#798EF7
secondary
#F5F0D6
accent
#BF00E5
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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