#797FED#797FED

#797FED is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.3% C 0.162 H 278.4°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#797FED
RGBrgb(121, 127, 237)
HSLhsl(237, 76%, 70%)
HSVhsv(237, 49%, 93%)
CMYKcmyk(48.9%, 46.4%, 0%, 7.1%)
CIE-LABlab(57.42, 26.80, -56.39)
CIE-LCHlch(57.42, 62.43, 295.42°)
OKLaboklab(64.33% 0.0238 -0.1603)
OKLCHoklch(64.33% 0.162 278.4)
XYZxyz(30.7559, 25.3564, 83.3780)
Luminance0.2536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FED #EDE779
analogous
#79B9ED #797FED #AD79ED
triadic
#797FED #ED797F #7FED79
tetradic
#797FED #ED79B9 #EDE779 #79EDAD
square
#797FED #ED79B9 #EDE779 #79EDAD
split-complementary
#797FED #EDAD79 #B9ED79
monochromatic
#1C25D0 #434BE6 #797FED #AFB3F4 #E4E5FB

Accessibility & contrast

On white

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

On black

6.07
#797FED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FED
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FED#FFFFFF#000000##000000
##797FED1.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF1
Deuteranopia (green-blind)
#4585EB
Tritanopia (blue-blind)
#4C97AB
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797fed;
/* rgb */ color: rgb(121, 127, 237);
/* oklch */ color: oklch(64.3% 0.162 278.4);
Tailwind
colors: {
  custom: {
    50: '#a6a4f3',
    500: '#797fed',
    950: '#000000',
  },
}
SCSS
$custom: #797fed;
$custom-light: #a6a4f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797fed",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 237
  },
  "hsl": {
    "h": 236.897,
    "s": 76.316,
    "l": 70.196
  },
  "oklch": {
    "l": 0.64331,
    "c": 0.16204,
    "h": 278.4
  },
  "luminance": 0.25358
}

Semantic roles & 50–950 ramp

primary
#797FED
secondary
#F1EFD1
accent
#CE0DD9
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FED

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

Preview Lab → · Contrast checker → · Palette generator →

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