#797BFE#797BFE

#797BFE is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.7% C 0.190 H 279.0°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#797BFE
RGBrgb(121, 123, 254)
HSLhsl(239, 99%, 74%)
HSVhsv(239, 52%, 100%)
CMYKcmyk(52.4%, 51.6%, 0%, 0.4%)
CIE-LABlab(57.45, 34.31, -65.75)
CIE-LCHlch(57.45, 74.16, 297.55°)
OKLaboklab(64.68% 0.0298 -0.1878)
OKLCHoklch(64.68% 0.19 279)
XYZxyz(32.8519, 25.3846, 96.9153)
Luminance0.2539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BFE #FEFC79
analogous
#79BDFE #797BFE #B979FE
triadic
#797BFE #FE797B #7BFE79
tetradic
#797BFE #FE79BD #FEFC79 #79FEB9
square
#797BFE #FE79BD #FEFC79 #79FEB9
split-complementary
#797BFE #FEB979 #BDFE79
monochromatic
#0206FB #3C3FFE #797BFE #B6B7FE #E1E1FF

Accessibility & contrast

On white

3.46
#797BFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#797BFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BFE
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BFE#FFFFFF#000000##000000
##797BFE1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#348FFF
Deuteranopia (green-blind)
#2085FB
Tritanopia (blue-blind)
#3E98B1
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797bfe;
/* rgb */ color: rgb(121, 123, 254);
/* oklch */ color: oklch(64.7% 0.190 279.0);
Tailwind
colors: {
  custom: {
    50: '#a8a1ff',
    500: '#797bfe',
    950: '#000000',
  },
}
SCSS
$custom: #797bfe;
$custom-light: #a8a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797bfe",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 254
  },
  "hsl": {
    "h": 239.098,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.64675,
    "c": 0.19017,
    "h": 279
  },
  "luminance": 0.25387
}

Semantic roles & 50–950 ramp

primary
#797BFE
secondary
#F7F7D4
accent
#E200E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #797BFE

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

Preview Lab → · Contrast checker → · Palette generator →

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