#797EF9#797EF9

#797EF9 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.9% C 0.180 H 278.4°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#797EF9
RGBrgb(121, 126, 249)
HSLhsl(238, 91%, 73%)
HSVhsv(238, 51%, 98%)
CMYKcmyk(51.4%, 49.4%, 0%, 2.4%)
CIE-LABlab(57.87, 31.02, -62.32)
CIE-LCHlch(57.87, 69.61, 296.46°)
OKLaboklab(64.89% 0.0262 -0.1777)
OKLCHoklch(64.89% 0.18 278.4)
XYZxyz(32.4396, 25.8242, 92.8794)
Luminance0.2583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF9 #F9F479
analogous
#79BEF9 #797EF9 #B479F9
triadic
#797EF9 #F9797E #7EF979
tetradic
#797EF9 #F979BE #F9F479 #79F9B4
square
#797EF9 #F979BE #F9F479 #79F9B4
split-complementary
#797EF9 #F9B479 #BEF979
monochromatic
#0B13ED #3E46F6 #797EF9 #B4B6FC #E2E3FE

Accessibility & contrast

On white

3.41
#797EF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#797EF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF9
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF9#FFFFFF#000000##000000
##797EF91.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FD
Deuteranopia (green-blind)
#3486F6
Tritanopia (blue-blind)
#4299B0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ef9;
/* rgb */ color: rgb(121, 126, 249);
/* oklch */ color: oklch(64.9% 0.180 278.4);
Tailwind
colors: {
  custom: {
    50: '#a8a3fc',
    500: '#797ef9',
    950: '#000000',
  },
}
SCSS
$custom: #797ef9;
$custom-light: #a8a3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef9",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 249
  },
  "hsl": {
    "h": 237.656,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64894,
    "c": 0.17962,
    "h": 278.4
  },
  "luminance": 0.25826
}

Semantic roles & 50–950 ramp

primary
#797EF9
secondary
#F6F5D5
accent
#DD00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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