#797EE8#797EE8

#797EE8 is a light, vivid blue. Relative luminance 0.248; OKLCH L 63.8% C 0.157 H 278.9°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#797EE8
RGBrgb(121, 126, 232)
HSLhsl(237, 71%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(47.8%, 45.7%, 0%, 9%)
CIE-LABlab(56.89, 25.89, -54.45)
CIE-LCHlch(56.89, 60.29, 295.43°)
OKLaboklab(63.84% 0.0243 -0.1546)
OKLCHoklch(63.84% 0.157 278.9)
XYZxyz(29.9070, 24.8112, 79.5415)
Luminance0.2481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE8 #E8E379
analogous
#79B6E8 #797EE8 #AC79E8
triadic
#797EE8 #E8797E #7EE879
tetradic
#797EE8 #E879B6 #E8E379 #79E8AC
square
#797EE8 #E879B6 #E8E379 #79E8AC
split-complementary
#797EE8 #E8AC79 #B6E879
monochromatic
#2229C5 #454CDF #797EE8 #ADB0F1 #E1E3FA

Accessibility & contrast

On white

3.52
#797EE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#797EE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE8
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE8#FFFFFF#000000##000000
##797EE81.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#528DEC
Deuteranopia (green-blind)
#4984E6
Tritanopia (blue-blind)
#5094A8
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee8;
/* rgb */ color: rgb(121, 126, 232);
/* oklch */ color: oklch(63.8% 0.157 278.9);
Tailwind
colors: {
  custom: {
    50: '#a6a3f0',
    500: '#797ee8',
    950: '#000000',
  },
}
SCSS
$custom: #797ee8;
$custom-light: #a6a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee8",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 232
  },
  "hsl": {
    "h": 237.297,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.63839,
    "c": 0.1565,
    "h": 278.9
  },
  "luminance": 0.24813
}

Semantic roles & 50–950 ramp

primary
#797EE8
secondary
#EFEDCE
accent
#CA13D3
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE8

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

Preview Lab → · Contrast checker → · Palette generator →

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