#797CFE#797CFE

#797CFE is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.9% C 0.189 H 278.7°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#797CFE
RGBrgb(121, 124, 254)
HSLhsl(239, 99%, 74%)
HSVhsv(239, 52%, 100%)
CMYKcmyk(52.4%, 51.2%, 0%, 0.4%)
CIE-LABlab(57.69, 33.72, -65.37)
CIE-LCHlch(57.69, 73.55, 297.29°)
OKLaboklab(64.85% 0.0287 -0.1867)
OKLCHoklch(64.85% 0.189 278.7)
XYZxyz(32.9766, 25.6340, 96.9569)
Luminance0.2564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CFE #FEFB79
analogous
#79BEFE #797CFE #B879FE
triadic
#797CFE #FE797C #7CFE79
tetradic
#797CFE #FE79BE #FEFB79 #79FEB8
square
#797CFE #FE79BE #FEFB79 #79FEB8
split-complementary
#797CFE #FEB879 #BEFE79
monochromatic
#0207FB #3C41FE #797CFE #B6B7FE #E1E1FF

Accessibility & contrast

On white

3.43
#797CFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#797CFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CFE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CFE#FFFFFF#000000##000000
##797CFE1.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3790FF
Deuteranopia (green-blind)
#2485FB
Tritanopia (blue-blind)
#3D99B1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797cfe;
/* rgb */ color: rgb(121, 124, 254);
/* oklch */ color: oklch(64.9% 0.189 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a2ff',
    500: '#797cfe',
    950: '#000000',
  },
}
SCSS
$custom: #797cfe;
$custom-light: #a8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797cfe",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 254
  },
  "hsl": {
    "h": 238.647,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.64854,
    "c": 0.18887,
    "h": 278.7
  },
  "luminance": 0.25636
}

Semantic roles & 50–950 ramp

primary
#797CFE
secondary
#F7F6D4
accent
#E000E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #797CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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