#797FEE#797FEE

#797FEE is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.4% C 0.163 H 278.4°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#797FEE
RGBrgb(121, 127, 238)
HSLhsl(237, 77%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(49.2%, 46.6%, 0%, 6.7%)
CIE-LABlab(57.48, 27.10, -56.85)
CIE-LCHlch(57.48, 62.98, 295.48°)
OKLaboklab(64.39% 0.0239 -0.1616)
OKLCHoklch(64.39% 0.163 278.4)
XYZxyz(30.9024, 25.4150, 84.1496)
Luminance0.2542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FEE #EEE879
analogous
#79B9EE #797FEE #AD79EE
triadic
#797FEE #EE797F #7FEE79
tetradic
#797FEE #EE79B9 #EEE879 #79EEAD
square
#797FEE #EE79B9 #EEE879 #79EEAD
split-complementary
#797FEE #EEAD79 #B9EE79
monochromatic
#1B24D2 #434BE7 #797FEE #AFB3F5 #E4E5FC

Accessibility & contrast

On white

3.45
#797FEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#797FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FEE
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FEE#FFFFFF#000000##000000
##797FEE1.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF2
Deuteranopia (green-blind)
#4486EC
Tritanopia (blue-blind)
#4B97AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797fee;
/* rgb */ color: rgb(121, 127, 238);
/* oklch */ color: oklch(64.4% 0.163 278.4);
Tailwind
colors: {
  custom: {
    50: '#a6a4f4',
    500: '#797fee',
    950: '#000000',
  },
}
SCSS
$custom: #797fee;
$custom-light: #a6a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#797fee",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 236.923,
    "s": 77.483,
    "l": 70.392
  },
  "oklch": {
    "l": 0.64392,
    "c": 0.16341,
    "h": 278.4
  },
  "luminance": 0.25417
}

Semantic roles & 50–950 ramp

primary
#797FEE
secondary
#F1F0D1
accent
#CF0CDA
background
#FAFAFF
surface
#F4F4FE
border
#CECED6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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