#797CF9#797CF9

#797CF9 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.5% C 0.182 H 278.9°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#797CF9
RGBrgb(121, 124, 249)
HSLhsl(239, 91%, 73%)
HSVhsv(239, 51%, 98%)
CMYKcmyk(51.4%, 50.2%, 0%, 2.4%)
CIE-LABlab(57.38, 32.20, -63.10)
CIE-LCHlch(57.38, 70.84, 297.04°)
OKLaboklab(64.53% 0.0283 -0.18)
OKLCHoklch(64.53% 0.182 278.9)
XYZxyz(32.1864, 25.3179, 92.7950)
Luminance0.2532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF9 #F9F679
analogous
#79BCF9 #797CF9 #B679F9
triadic
#797CF9 #F9797C #7CF979
tetradic
#797CF9 #F979BC #F9F679 #79F9B6
square
#797CF9 #F979BC #F9F679 #79F9B6
split-complementary
#797CF9 #F9B679 #BCF979
monochromatic
#0B10ED #3E43F6 #797CF9 #B4B5FC #E2E2FE

Accessibility & contrast

On white

3.46
#797CF9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#797CF9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CF9
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CF9#FFFFFF#000000##000000
##797CF91.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8FFD
Deuteranopia (green-blind)
#2E85F6
Tritanopia (blue-blind)
#4298AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797cf9;
/* rgb */ color: rgb(121, 124, 249);
/* oklch */ color: oklch(64.5% 0.182 278.9);
Tailwind
colors: {
  custom: {
    50: '#a8a1fc',
    500: '#797cf9',
    950: '#000000',
  },
}
SCSS
$custom: #797cf9;
$custom-light: #a8a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf9",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 249
  },
  "hsl": {
    "h": 238.594,
    "s": 91.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.64528,
    "c": 0.18223,
    "h": 278.9
  },
  "luminance": 0.2532
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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