#797EE9#797EE9

#797EE9 is a light, vivid blue. Relative luminance 0.249; OKLCH L 63.9% C 0.158 H 278.9°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#797EE9
RGBrgb(121, 126, 233)
HSLhsl(237, 72%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(48.1%, 45.9%, 0%, 8.6%)
CIE-LABlab(56.95, 26.19, -54.92)
CIE-LCHlch(56.95, 60.85, 295.50°)
OKLaboklab(63.9% 0.0245 -0.156)
OKLCHoklch(63.9% 0.158 278.9)
XYZxyz(30.0495, 24.8682, 80.2917)
Luminance0.2487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE9 #E9E479
analogous
#79B6E9 #797EE9 #AC79E9
triadic
#797EE9 #E9797E #7EE979
tetradic
#797EE9 #E979B6 #E9E479 #79E9AC
square
#797EE9 #E979B6 #E9E479 #79E9AC
split-complementary
#797EE9 #E9AC79 #B6E979
monochromatic
#2128C7 #444BE0 #797EE9 #AEB1F2 #E2E3FA

Accessibility & contrast

On white

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

On black

5.97
#797EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE9
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE9#FFFFFF#000000##000000
##797EE91.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#518DED
Deuteranopia (green-blind)
#4884E7
Tritanopia (blue-blind)
#4F95A8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797ee9;
/* rgb */ color: rgb(121, 126, 233);
/* oklch */ color: oklch(63.9% 0.158 278.9);
Tailwind
colors: {
  custom: {
    50: '#a6a3f0',
    500: '#797ee9',
    950: '#000000',
  },
}
SCSS
$custom: #797ee9;
$custom-light: #a6a3f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee9",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 233
  },
  "hsl": {
    "h": 237.321,
    "s": 71.795,
    "l": 69.412
  },
  "oklch": {
    "l": 0.63899,
    "c": 0.15789,
    "h": 278.9
  },
  "luminance": 0.2487
}

Semantic roles & 50–950 ramp

primary
#797EE9
secondary
#EFEECF
accent
#CB12D4
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EE9

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

Preview Lab → · Contrast checker → · Palette generator →

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