#797EE7#797EE7

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

Color values

HEX#797EE7
RGBrgb(121, 126, 231)
HSLhsl(237, 70%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(47.6%, 45.5%, 0%, 9.4%)
CIE-LABlab(56.84, 25.60, -53.98)
CIE-LCHlch(56.84, 59.74, 295.37°)
OKLaboklab(63.78% 0.0242 -0.1532)
OKLCHoklch(63.78% 0.155 279)
XYZxyz(29.7654, 24.7546, 78.7955)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE7 #E7E279
analogous
#79B5E7 #797EE7 #AB79E7
triadic
#797EE7 #E7797E #7EE779
tetradic
#797EE7 #E779B5 #E7E279 #79E7AB
square
#797EE7 #E779B5 #E7E279 #79E7AB
split-complementary
#797EE7 #E7AB79 #B5E779
monochromatic
#232AC3 #454CDE #797EE7 #ADB0F0 #E1E2FA

Accessibility & contrast

On white

3.53
#797EE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE7
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE7#FFFFFF#000000##000000
##797EE71.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#528DEB
Deuteranopia (green-blind)
#4A84E5
Tritanopia (blue-blind)
#5094A7
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee7;
/* rgb */ color: rgb(121, 126, 231);
/* oklch */ color: oklch(63.8% 0.155 279.0);
Tailwind
colors: {
  custom: {
    50: '#a6a3ef',
    500: '#797ee7',
    950: '#000000',
  },
}
SCSS
$custom: #797ee7;
$custom-light: #a6a3ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 231
  },
  "hsl": {
    "h": 237.273,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63779,
    "c": 0.15513,
    "h": 279
  },
  "luminance": 0.24756
}

Semantic roles & 50–950 ramp

primary
#797EE7
secondary
#EEEDCE
accent
#C914D2
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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