#797AFE#797AFE

#797AFE is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.5% C 0.191 H 279.3°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#797AFE
RGBrgb(121, 122, 254)
HSLhsl(240, 99%, 74%)
HSVhsv(240, 52%, 100%)
CMYKcmyk(52.4%, 52%, 0%, 0.4%)
CIE-LABlab(57.21, 34.90, -66.14)
CIE-LCHlch(57.21, 74.78, 297.82°)
OKLaboklab(64.5% 0.0308 -0.189)
OKLCHoklch(64.5% 0.191 279.3)
XYZxyz(32.7285, 25.1378, 96.8742)
Luminance0.2514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AFE #FEFD79
analogous
#79BCFE #797AFE #BA79FE
triadic
#797AFE #FE797A #7AFE79
tetradic
#797AFE #FE79BC #FEFD79 #79FEBA
square
#797AFE #FE79BC #FEFD79 #79FEBA
split-complementary
#797AFE #FEBA79 #BCFE79
monochromatic
#0204FB #3C3EFE #797AFE #B6B6FE #E1E1FF

Accessibility & contrast

On white

3.48
#797AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#797AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AFE
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AFE#FFFFFF#000000##000000
##797AFE1.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#318FFF
Deuteranopia (green-blind)
#1C84FB
Tritanopia (blue-blind)
#3E98B0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797afe;
/* rgb */ color: rgb(121, 122, 254);
/* oklch */ color: oklch(64.5% 0.191 279.3);
Tailwind
colors: {
  custom: {
    50: '#a9a0ff',
    500: '#797afe',
    950: '#000000',
  },
}
SCSS
$custom: #797afe;
$custom-light: #a9a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797afe",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 239.549,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.64496,
    "c": 0.19145,
    "h": 279.3
  },
  "luminance": 0.2514
}

Semantic roles & 50–950 ramp

primary
#797AFE
secondary
#F7F7D4
accent
#E400E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #797AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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