#797DF9#797DF9

#797DF9 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.7% C 0.181 H 278.7°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#797DF9
RGBrgb(121, 125, 249)
HSLhsl(238, 91%, 73%)
HSVhsv(238, 51%, 98%)
CMYKcmyk(51.4%, 49.8%, 0%, 2.4%)
CIE-LABlab(57.63, 31.61, -62.71)
CIE-LCHlch(57.63, 70.22, 296.75°)
OKLaboklab(64.71% 0.0273 -0.1789)
OKLCHoklch(64.71% 0.181 278.7)
XYZxyz(32.3123, 25.5698, 92.8370)
Luminance0.2557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF9 #F9F579
analogous
#79BDF9 #797DF9 #B579F9
triadic
#797DF9 #F9797D #7DF979
tetradic
#797DF9 #F979BD #F9F579 #79F9B5
square
#797DF9 #F979BD #F9F579 #79F9B5
split-complementary
#797DF9 #F9B579 #BDF979
monochromatic
#0B12ED #3E44F6 #797DF9 #B4B6FC #E2E3FE

Accessibility & contrast

On white

3.43
#797DF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#797DF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF9
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF9#FFFFFF#000000##000000
##797DF91.003.436.116.11
#FFFFFF3.431.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4090FD
Deuteranopia (green-blind)
#3185F6
Tritanopia (blue-blind)
#4298AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df9;
/* rgb */ color: rgb(121, 125, 249);
/* oklch */ color: oklch(64.7% 0.181 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a2fc',
    500: '#797df9',
    950: '#000000',
  },
}
SCSS
$custom: #797df9;
$custom-light: #a8a2fc;
$custom-dark: #000000;
JSON
{
  "hex": "#797df9",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 238.125,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64711,
    "c": 0.18093,
    "h": 278.7
  },
  "luminance": 0.25572
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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