#797EFF#797EFF

#797EFF is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.3% C 0.188 H 278.2°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#797EFF
RGBrgb(121, 126, 255)
HSLhsl(238, 100%, 74%)
HSVhsv(238, 53%, 100%)
CMYKcmyk(52.5%, 50.6%, 0%, 0%)
CIE-LABlab(58.23, 32.84, -65.04)
CIE-LCHlch(58.23, 72.86, 296.79°)
OKLaboklab(65.28% 0.0267 -0.1857)
OKLCHoklch(65.28% 0.188 278.2)
XYZxyz(33.3903, 26.2046, 97.8869)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFF #FFFA79
analogous
#79C1FF #797EFF #B779FF
triadic
#797EFF #FF797E #7EFF79
tetradic
#797EFF #FF79C1 #FFFA79 #79FFB7
square
#797EFF #FF79C1 #FFFA79 #79FFB7
split-complementary
#797EFF #FFB779 #C1FF79
monochromatic
#0009FE #3C43FF #797EFF #B6B9FF #E0E2FF

Accessibility & contrast

On white

3.36
#797EFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#797EFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFF#FFFFFF#000000##000000
##797EFF1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B91FF
Deuteranopia (green-blind)
#2987FC
Tritanopia (blue-blind)
#3C9BB3
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #797eff;
/* rgb */ color: rgb(121, 126, 255);
/* oklch */ color: oklch(65.3% 0.188 278.2);
Tailwind
colors: {
  custom: {
    50: '#a8a3ff',
    500: '#797eff',
    950: '#000000',
  },
}
SCSS
$custom: #797eff;
$custom-light: #a8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797eff",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 255
  },
  "hsl": {
    "h": 237.761,
    "s": 100,
    "l": 73.725
  },
  "oklch": {
    "l": 0.65282,
    "c": 0.18763,
    "h": 278.2
  },
  "luminance": 0.26207
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797EFF

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

Preview Lab → · Contrast checker → · Palette generator →

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