#798AF7#798AF7

#798AF7 is a light, vivid blue. Relative luminance 0.290; OKLCH L 67.0% C 0.161 H 274.5°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#798AF7
RGBrgb(121, 138, 247)
HSLhsl(232, 89%, 72%)
HSVhsv(232, 51%, 97%)
CMYKcmyk(51%, 44.1%, 0%, 3.1%)
CIE-LABlab(60.74, 23.30, -56.62)
CIE-LCHlch(60.74, 61.23, 292.37°)
OKLaboklab(67.03% 0.0128 -0.1609)
OKLCHoklch(67.03% 0.161 274.5)
XYZxyz(33.7568, 28.9552, 91.7878)
Luminance0.2896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798AF7 #F7E679
analogous
#79C9F7 #798AF7 #A779F7
triadic
#798AF7 #F7798A #8AF779
tetradic
#798AF7 #F779C9 #F7E679 #79F7A7
square
#798AF7 #F779C9 #F7E679 #79F7A7
split-complementary
#798AF7 #F7A779 #C9F779
monochromatic
#0E2BE8 #3F58F4 #798AF7 #B3BCFA #E2E6FD

Accessibility & contrast

On white

3.09
#798AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#798AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798AF7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798AF7#FFFFFF#000000##000000
##798AF71.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C98FB
Deuteranopia (green-blind)
#4E8EF5
Tritanopia (blue-blind)
#42A2B5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #798af7;
/* rgb */ color: rgb(121, 138, 247);
/* oklch */ color: oklch(67.0% 0.161 274.5);
Tailwind
colors: {
  custom: {
    50: '#a7abfa',
    500: '#798af7',
    950: '#000000',
  },
}
SCSS
$custom: #798af7;
$custom-light: #a7abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#798af7",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 247
  },
  "hsl": {
    "h": 231.905,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67034,
    "c": 0.16138,
    "h": 274.5
  },
  "luminance": 0.28957
}

Semantic roles & 50–950 ramp

primary
#798AF7
secondary
#F5F1D6
accent
#C600E5
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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