#797AF9#797AF9

#797AF9 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.2% C 0.185 H 279.5°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#797AF9
RGBrgb(121, 122, 249)
HSLhsl(240, 91%, 73%)
HSVhsv(240, 51%, 98%)
CMYKcmyk(51.4%, 51%, 0%, 2.4%)
CIE-LABlab(56.90, 33.38, -63.87)
CIE-LCHlch(56.90, 72.07, 297.59°)
OKLaboklab(64.17% 0.0305 -0.1823)
OKLCHoklch(64.17% 0.185 279.5)
XYZxyz(31.9383, 24.8217, 92.7123)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF9 #F9F879
analogous
#79BAF9 #797AF9 #B879F9
triadic
#797AF9 #F9797A #7AF979
tetradic
#797AF9 #F979BA #F9F879 #79F9B8
square
#797AF9 #F979BA #F9F879 #79F9B8
split-complementary
#797AF9 #F9B879 #BAF979
monochromatic
#0B0CED #3E40F6 #797AF9 #B4B4FC #E2E2FE

Accessibility & contrast

On white

3.52
#797AF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#797AF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF9
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF9#FFFFFF#000000##000000
##797AF91.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#388EFD
Deuteranopia (green-blind)
#2984F6
Tritanopia (blue-blind)
#4396AE
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797af9;
/* rgb */ color: rgb(121, 122, 249);
/* oklch */ color: oklch(64.2% 0.185 279.5);
Tailwind
colors: {
  custom: {
    50: '#a8a0fc',
    500: '#797af9',
    950: '#000000',
  },
}
SCSS
$custom: #797af9;
$custom-light: #a8a0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#797af9",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 239.531,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64166,
    "c": 0.18484,
    "h": 279.5
  },
  "luminance": 0.24824
}

Semantic roles & 50–950 ramp

primary
#797AF9
secondary
#F6F6D5
accent
#E400E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E18
muted
#7F7E86

Preview Lab

Preview with #797AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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