#797EEF#797EEF

#797EEF is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.3% C 0.166 H 278.7°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#797EEF
RGBrgb(121, 126, 239)
HSLhsl(237, 79%, 71%)
HSVhsv(237, 49%, 94%)
CMYKcmyk(49.4%, 47.3%, 0%, 6.3%)
CIE-LABlab(57.29, 27.99, -57.71)
CIE-LCHlch(57.29, 64.15, 295.87°)
OKLaboklab(64.27% 0.0252 -0.1642)
OKLCHoklch(64.27% 0.166 278.7)
XYZxyz(30.9212, 25.2169, 84.8826)
Luminance0.2522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EEF #EFEA79
analogous
#79B9EF #797EEF #AF79EF
triadic
#797EEF #EF797E #7EEF79
tetradic
#797EEF #EF79B9 #EFEA79 #79EFAF
square
#797EEF #EF79B9 #EFEA79 #79EFAF
split-complementary
#797EEF #EFAF79 #B9EF79
monochromatic
#1921D4 #4249E8 #797EEF #B0B3F6 #E4E5FC

Accessibility & contrast

On white

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

On black

6.04
#797EEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EEF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EEF#FFFFFF#000000##000000
##797EEF1.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF3
Deuteranopia (green-blind)
#4185ED
Tritanopia (blue-blind)
#4B96AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797eef;
/* rgb */ color: rgb(121, 126, 239);
/* oklch */ color: oklch(64.3% 0.166 278.7);
Tailwind
colors: {
  custom: {
    50: '#a7a3f5',
    500: '#797eef',
    950: '#000000',
  },
}
SCSS
$custom: #797eef;
$custom-light: #a7a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797eef",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 237.458,
    "s": 78.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.64266,
    "c": 0.1661,
    "h": 278.7
  },
  "luminance": 0.25219
}

Semantic roles & 50–950 ramp

primary
#797EEF
secondary
#F2F1D2
accent
#D20BDB
background
#FAFAFF
surface
#F4F3FE
border
#CECDD6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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