#797EFE#797EFE

#797EFE is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.186 H 278.2°. Best body text is #000000 at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#797EFE
RGBrgb(121, 126, 254)
HSLhsl(238, 99%, 74%)
HSVhsv(238, 52%, 100%)
CMYKcmyk(52.4%, 50.4%, 0%, 0.4%)
CIE-LABlab(58.17, 32.54, -64.59)
CIE-LCHlch(58.17, 72.32, 296.74°)
OKLaboklab(65.22% 0.0266 -0.1844)
OKLCHoklch(65.22% 0.186 278.2)
XYZxyz(33.2298, 26.1403, 97.0413)
Luminance0.2614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFE #FEF979
analogous
#79C0FE #797EFE #B679FE
triadic
#797EFE #FE797E #7EFE79
tetradic
#797EFE #FE79C0 #FEF979 #79FEB6
square
#797EFE #FE79C0 #FEF979 #79FEB6
split-complementary
#797EFE #FEB679 #C0FE79
monochromatic
#020BFB #3C44FE #797EFE #B6B8FE #E1E2FF

Accessibility & contrast

On white

3.37
#797EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.23
#797EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFE
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFE#FFFFFF#000000##000000
##797EFE1.003.376.236.23
#FFFFFF3.371.0021.0021.00
#0000006.2321.001.001.00
##0000006.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C91FF
Deuteranopia (green-blind)
#2B87FB
Tritanopia (blue-blind)
#3D9BB2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #797efe;
/* rgb */ color: rgb(121, 126, 254);
/* oklch */ color: oklch(65.2% 0.186 278.2);
Tailwind
colors: {
  custom: {
    50: '#a8a3ff',
    500: '#797efe',
    950: '#000000',
  },
}
SCSS
$custom: #797efe;
$custom-light: #a8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797efe",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 254
  },
  "hsl": {
    "h": 237.744,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.65216,
    "c": 0.1863,
    "h": 278.2
  },
  "luminance": 0.26142
}

Semantic roles & 50–950 ramp

primary
#797EFE
secondary
#F7F6D4
accent
#DD00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#110F18
muted
#807F86

Preview Lab

Preview with #797EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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