#797FEC#797FEC

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

Color values

HEX#797FEC
RGBrgb(121, 127, 236)
HSLhsl(237, 75%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(48.7%, 46.2%, 0%, 7.5%)
CIE-LABlab(57.36, 26.50, -55.92)
CIE-LCHlch(57.36, 61.88, 295.35°)
OKLaboklab(64.27% 0.0237 -0.1589)
OKLCHoklch(64.27% 0.161 278.5)
XYZxyz(30.6102, 25.2981, 82.6107)
Luminance0.2530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FEC #ECE679
analogous
#79B8EC #797FEC #AD79EC
triadic
#797FEC #EC797F #7FEC79
tetradic
#797FEC #EC79B8 #ECE679 #79ECAD
square
#797FEC #EC79B8 #ECE679 #79ECAD
split-complementary
#797FEC #ECAD79 #B8EC79
monochromatic
#1D26CD #434CE4 #797FEC #AFB2F4 #E4E5FB

Accessibility & contrast

On white

3.47
#797FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797FEC#FFFFFF#000000##000000
##797FEC1.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#508EF0
Deuteranopia (green-blind)
#4685EA
Tritanopia (blue-blind)
#4D96AA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797fec;
/* rgb */ color: rgb(121, 127, 236);
/* oklch */ color: oklch(64.3% 0.161 278.5);
Tailwind
colors: {
  custom: {
    50: '#a6a4f3',
    500: '#797fec',
    950: '#000000',
  },
}
SCSS
$custom: #797fec;
$custom-light: #a6a4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797fec",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 236
  },
  "hsl": {
    "h": 236.87,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.6427,
    "c": 0.16067,
    "h": 278.5
  },
  "luminance": 0.253
}

Semantic roles & 50–950 ramp

primary
#797FEC
secondary
#F0EFD0
accent
#CD0ED7
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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