#797FEA#797FEA

#797FEA is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.1% C 0.158 H 278.5°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#797FEA
RGBrgb(121, 127, 234)
HSLhsl(237, 73%, 70%)
HSVhsv(237, 48%, 92%)
CMYKcmyk(48.3%, 45.7%, 0%, 8.2%)
CIE-LABlab(57.25, 25.90, -54.99)
CIE-LCHlch(57.25, 60.78, 295.22°)
OKLaboklab(64.15% 0.0234 -0.1562)
OKLCHoklch(64.15% 0.158 278.5)
XYZxyz(30.3212, 25.1825, 81.0890)
Luminance0.2518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FEA #EAE479
analogous
#79B8EA #797FEA #AC79EA
triadic
#797FEA #EA797F #7FEA79
tetradic
#797FEA #EA79B8 #EAE479 #79EAAC
square
#797FEA #EA79B8 #EAE479 #79EAAC
split-complementary
#797FEA #EAAC79 #B8EA79
monochromatic
#2029C9 #444CE2 #797FEA #AEB2F2 #E3E4FB

Accessibility & contrast

On white

3.48
#797FEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#797FEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FEA
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FEA#FFFFFF#000000##000000
##797FEA1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#528EEE
Deuteranopia (green-blind)
#4885E8
Tritanopia (blue-blind)
#4E96A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fea;
/* rgb */ color: rgb(121, 127, 234);
/* oklch */ color: oklch(64.1% 0.158 278.5);
Tailwind
colors: {
  custom: {
    50: '#a6a4f1',
    500: '#797fea',
    950: '#000000',
  },
}
SCSS
$custom: #797fea;
$custom-light: #a6a4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797fea",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 236.814,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.64149,
    "c": 0.15792,
    "h": 278.5
  },
  "luminance": 0.25184
}

Semantic roles & 50–950 ramp

primary
#797FEA
secondary
#F0EECF
accent
#CB11D5
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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