#797BF9#797BF9

#797BF9 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.3% C 0.184 H 279.2°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#797BF9
RGBrgb(121, 123, 249)
HSLhsl(239, 91%, 73%)
HSVhsv(239, 51%, 98%)
CMYKcmyk(51.4%, 50.6%, 0%, 2.4%)
CIE-LABlab(57.14, 32.79, -63.48)
CIE-LCHlch(57.14, 71.45, 297.32°)
OKLaboklab(64.35% 0.0294 -0.1812)
OKLCHoklch(64.35% 0.184 279.2)
XYZxyz(32.0617, 25.0685, 92.7534)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF9 #F9F779
analogous
#79BBF9 #797BF9 #B779F9
triadic
#797BF9 #F9797B #7BF979
tetradic
#797BF9 #F979BB #F9F779 #79F9B7
square
#797BF9 #F979BB #F9F779 #79F9B7
split-complementary
#797BF9 #F9B779 #BBF979
monochromatic
#0B0EED #3E41F6 #797BF9 #B4B5FC #E2E2FE

Accessibility & contrast

On white

3.49
#797BF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#797BF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF9
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF9#FFFFFF#000000##000000
##797BF91.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8EFD
Deuteranopia (green-blind)
#2C84F6
Tritanopia (blue-blind)
#4397AE
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797bf9;
/* rgb */ color: rgb(121, 123, 249);
/* oklch */ color: oklch(64.3% 0.184 279.2);
Tailwind
colors: {
  custom: {
    50: '#a8a1fc',
    500: '#797bf9',
    950: '#000000',
  },
}
SCSS
$custom: #797bf9;
$custom-light: #a8a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf9",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 249
  },
  "hsl": {
    "h": 239.063,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64347,
    "c": 0.18353,
    "h": 279.2
  },
  "luminance": 0.2507
}

Semantic roles & 50–950 ramp

primary
#797BF9
secondary
#F6F5D5
accent
#E200E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F18
muted
#7F7E86

Preview Lab

Preview with #797BF9

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

Preview Lab → · Contrast checker → · Palette generator →

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