#797EE2#797EE2

#797EE2 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.5% C 0.148 H 279.1°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#797EE2
RGBrgb(121, 126, 226)
HSLhsl(237, 64%, 68%)
HSVhsv(237, 46%, 89%)
CMYKcmyk(46.5%, 44.2%, 0%, 11.4%)
CIE-LABlab(56.56, 24.11, -51.63)
CIE-LCHlch(56.56, 56.98, 295.03°)
OKLaboklab(63.48% 0.0235 -0.1463)
OKLCHoklch(63.48% 0.148 279.1)
XYZxyz(29.0693, 24.4761, 75.1294)
Luminance0.2448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EE2 #E2DD79
analogous
#79B2E2 #797EE2 #A879E2
triadic
#797EE2 #E2797E #7EE279
tetradic
#797EE2 #E279B2 #E2DD79 #79E2A8
square
#797EE2 #E279B2 #E2DD79 #79E2A8
split-complementary
#797EE2 #E2A879 #B2E279
monochromatic
#282FB9 #474ED7 #797EE2 #ABAEED #DEDFF8

Accessibility & contrast

On white

3.56
#797EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#797EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EE2
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EE2#FFFFFF#000000##000000
##797EE21.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#568CE6
Deuteranopia (green-blind)
#4E84E0
Tritanopia (blue-blind)
#5493A5
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797ee2;
/* rgb */ color: rgb(121, 126, 226);
/* oklch */ color: oklch(63.5% 0.148 279.1);
Tailwind
colors: {
  custom: {
    50: '#a5a3eb',
    500: '#797ee2',
    950: '#000000',
  },
}
SCSS
$custom: #797ee2;
$custom-light: #a5a3eb;
$custom-dark: #000000;
JSON
{
  "hex": "#797ee2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 237.143,
    "s": 64.417,
    "l": 68.039
  },
  "oklch": {
    "l": 0.63482,
    "c": 0.1482,
    "h": 279.1
  },
  "luminance": 0.24478
}

Semantic roles & 50–950 ramp

primary
#797EE2
secondary
#EBEACB
accent
#C419CC
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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