#797EFC#797EFC

#797EFC is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.1% C 0.184 H 278.3°. Best body text is #000000 at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#797EFC
RGBrgb(121, 126, 252)
HSLhsl(238, 96%, 73%)
HSVhsv(238, 52%, 99%)
CMYKcmyk(52%, 50%, 0%, 1.2%)
CIE-LABlab(58.05, 31.93, -63.68)
CIE-LCHlch(58.05, 71.24, 296.63°)
OKLaboklab(65.09% 0.0264 -0.1817)
OKLCHoklch(65.09% 0.184 278.3)
XYZxyz(32.9112, 26.0129, 95.3634)
Luminance0.2601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFC #FCF779
analogous
#79BFFC #797EFC #B579FC
triadic
#797EFC #FC797E #7EFC79
tetradic
#797EFC #FC79BF #FCF779 #79FCB5
square
#797EFC #FC79BF #FCF779 #79FCB5
split-complementary
#797EFC #FCB579 #BFFC79
monochromatic
#050FF5 #3D44FB #797EFC #B5B8FD #E1E2FE

Accessibility & contrast

On white

3.39
#797EFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.20
#797EFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFC
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFC#FFFFFF#000000##000000
##797EFC1.003.396.206.20
#FFFFFF3.391.0021.0021.00
#0000006.2021.001.001.00
##0000006.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F91FF
Deuteranopia (green-blind)
#2F86F9
Tritanopia (blue-blind)
#3F9AB1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797efc;
/* rgb */ color: rgb(121, 126, 252);
/* oklch */ color: oklch(65.1% 0.184 278.3);
Tailwind
colors: {
  custom: {
    50: '#a8a3fe',
    500: '#797efc',
    950: '#000000',
  },
}
SCSS
$custom: #797efc;
$custom-light: #a8a3fe;
$custom-dark: #000000;
JSON
{
  "hex": "#797efc",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 252
  },
  "hsl": {
    "h": 237.71,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.65087,
    "c": 0.18363,
    "h": 278.3
  },
  "luminance": 0.26015
}

Semantic roles & 50–950 ramp

primary
#797EFC
secondary
#F7F5D4
accent
#DD00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797EFC

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

Preview Lab → · Contrast checker → · Palette generator →

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