#798EF9#798EF9

#798EF9 is a light, vivid blue. Relative luminance 0.303; OKLCH L 67.9% C 0.159 H 273.1°. Best body text is #000000 at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#798EF9
RGBrgb(121, 142, 249)
HSLhsl(230, 91%, 73%)
HSVhsv(230, 51%, 98%)
CMYKcmyk(51.4%, 43%, 0%, 2.4%)
CIE-LABlab(61.87, 21.55, -55.92)
CIE-LCHlch(61.87, 59.93, 291.08°)
OKLaboklab(67.93% 0.0086 -0.1588)
OKLCHoklch(67.93% 0.159 273.1)
XYZxyz(34.6516, 30.2482, 93.6167)
Luminance0.3025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798EF9 #F9E479
analogous
#79CEF9 #798EF9 #A479F9
triadic
#798EF9 #F9798E #8EF979
tetradic
#798EF9 #F979CE #F9E479 #79F9A4
square
#798EF9 #F979CE #F9E479 #79F9A4
split-complementary
#798EF9 #F9A479 #CEF979
monochromatic
#0B30ED #3E5DF6 #798EF9 #B4BFFC #E2E6FE

Accessibility & contrast

On white

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

On black

7.05
#798EF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #798EF9
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798EF9#FFFFFF#000000##000000
##798EF91.002.987.057.05
#FFFFFF2.981.0021.0021.00
#0000007.0521.001.001.00
##0000007.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#619BFD
Deuteranopia (green-blind)
#5390F7
Tritanopia (blue-blind)
#3FA5B7
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #798ef9;
/* rgb */ color: rgb(121, 142, 249);
/* oklch */ color: oklch(67.9% 0.159 273.1);
Tailwind
colors: {
  custom: {
    50: '#a7aefc',
    500: '#798ef9',
    950: '#000000',
  },
}
SCSS
$custom: #798ef9;
$custom-light: #a7aefc;
$custom-dark: #000000;
JSON
{
  "hex": "#798ef9",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 249
  },
  "hsl": {
    "h": 230.156,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.67928,
    "c": 0.15904,
    "h": 273.1
  },
  "luminance": 0.30251
}

Semantic roles & 50–950 ramp

primary
#798EF9
secondary
#F6F0D5
accent
#C000E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#101017
muted
#7F7F85

Preview Lab

Preview with #798EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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