#797AEE#797AEE

#797AEE is a light, vivid blue. Relative luminance 0.242; OKLCH L 63.5% C 0.170 H 280.0°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#797AEE
RGBrgb(121, 122, 238)
HSLhsl(239, 77%, 70%)
HSVhsv(239, 49%, 93%)
CMYKcmyk(49.2%, 48.7%, 0%, 6.7%)
CIE-LABlab(56.24, 30.07, -58.83)
CIE-LCHlch(56.24, 66.07, 297.07°)
OKLaboklab(63.46% 0.0296 -0.1675)
OKLCHoklch(63.46% 0.17 280)
XYZxyz(30.2726, 24.1554, 83.9397)
Luminance0.2416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AEE #EEED79
analogous
#79B4EE #797AEE #B279EE
triadic
#797AEE #EE797A #7AEE79
tetradic
#797AEE #EE79B4 #EEED79 #79EEB2
square
#797AEE #EE79B4 #EEED79 #79EEB2
split-complementary
#797AEE #EEB279 #B4EE79
monochromatic
#1B1CD2 #4344E7 #797AEE #AFB0F5 #E4E4FC

Accessibility & contrast

On white

3.60
#797AEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#797AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AEE
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AEE#FFFFFF#000000##000000
##797AEE1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#458BF2
Deuteranopia (green-blind)
#3A82EB
Tritanopia (blue-blind)
#4C93A9
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797aee;
/* rgb */ color: rgb(121, 122, 238);
/* oklch */ color: oklch(63.5% 0.170 280.0);
Tailwind
colors: {
  custom: {
    50: '#a7a0f4',
    500: '#797aee',
    950: '#000000',
  },
}
SCSS
$custom: #797aee;
$custom-light: #a7a0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#797aee",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 239.487,
    "s": 77.483,
    "l": 70.392
  },
  "oklch": {
    "l": 0.6346,
    "c": 0.17007,
    "h": 280
  },
  "luminance": 0.24157
}

Semantic roles & 50–950 ramp

primary
#797AEE
secondary
#F1F1D1
accent
#D80CDA
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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