#797EEA#797EEA

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

Color values

HEX#797EEA
RGBrgb(121, 126, 234)
HSLhsl(237, 73%, 70%)
HSVhsv(237, 48%, 92%)
CMYKcmyk(48.3%, 46.2%, 0%, 8.2%)
CIE-LABlab(57.00, 26.49, -55.39)
CIE-LCHlch(57.00, 61.40, 295.56°)
OKLaboklab(63.96% 0.0246 -0.1573)
OKLCHoklch(63.96% 0.159 278.9)
XYZxyz(30.1927, 24.9255, 81.0461)
Luminance0.2493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EEA #EAE579
analogous
#79B7EA #797EEA #AD79EA
triadic
#797EEA #EA797E #7EEA79
tetradic
#797EEA #EA79B7 #EAE579 #79EAAD
square
#797EEA #EA79B7 #EAE579 #79EAAD
split-complementary
#797EEA #EAAD79 #B7EA79
monochromatic
#2027C9 #444BE2 #797EEA #AEB1F2 #E3E4FB

Accessibility & contrast

On white

3.51
#797EEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.99
#797EEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EEA
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EEA#FFFFFF#000000##000000
##797EEA1.003.515.995.99
#FFFFFF3.511.0021.0021.00
#0000005.9921.001.001.00
##0000005.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#4785E8
Tritanopia (blue-blind)
#4E95A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797eea;
/* rgb */ color: rgb(121, 126, 234);
/* oklch */ color: oklch(64.0% 0.159 278.9);
Tailwind
colors: {
  custom: {
    50: '#a6a3f1',
    500: '#797eea',
    950: '#000000',
  },
}
SCSS
$custom: #797eea;
$custom-light: #a6a3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797eea",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 237.345,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.6396,
    "c": 0.15926,
    "h": 278.9
  },
  "luminance": 0.24927
}

Semantic roles & 50–950 ramp

primary
#797EEA
secondary
#F0EECF
accent
#CC11D5
background
#FAFAFE
surface
#F4F3FD
border
#CECDD5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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