#797FE8#797FE8

#797FE8 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.0% C 0.155 H 278.6°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#797FE8
RGBrgb(121, 127, 232)
HSLhsl(237, 71%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(47.8%, 45.3%, 0%, 9%)
CIE-LABlab(57.14, 25.30, -54.05)
CIE-LCHlch(57.14, 59.68, 295.08°)
OKLaboklab(64.03% 0.0232 -0.1534)
OKLCHoklch(64.03% 0.155 278.6)
XYZxyz(30.0355, 25.0682, 79.5843)
Luminance0.2507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE8 #E8E279
analogous
#79B7E8 #797FE8 #AB79E8
triadic
#797FE8 #E8797F #7FE879
tetradic
#797FE8 #E879B7 #E8E279 #79E8AB
square
#797FE8 #E879B7 #E8E279 #79E8AB
split-complementary
#797FE8 #E8AB79 #B7E879
monochromatic
#222BC5 #454DDF #797FE8 #ADB1F1 #E1E3FA

Accessibility & contrast

On white

3.49
#797FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#797FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE8
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE8#FFFFFF#000000##000000
##797FE81.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#538EEC
Deuteranopia (green-blind)
#4A85E6
Tritanopia (blue-blind)
#5095A8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fe8;
/* rgb */ color: rgb(121, 127, 232);
/* oklch */ color: oklch(64.0% 0.155 278.6);
Tailwind
colors: {
  custom: {
    50: '#a6a4f0',
    500: '#797fe8',
    950: '#000000',
  },
}
SCSS
$custom: #797fe8;
$custom-light: #a6a4f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe8",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 232
  },
  "hsl": {
    "h": 236.757,
    "s": 70.701,
    "l": 69.216
  },
  "oklch": {
    "l": 0.64029,
    "c": 0.15516,
    "h": 278.6
  },
  "luminance": 0.2507
}

Semantic roles & 50–950 ramp

primary
#797FE8
secondary
#EFEDCE
accent
#C813D3
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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