#797EF8#797EF8

#797EF8 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.178 H 278.4°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#797EF8
RGBrgb(121, 126, 248)
HSLhsl(238, 90%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51.2%, 49.2%, 0%, 2.7%)
CIE-LABlab(57.81, 30.71, -61.86)
CIE-LCHlch(57.81, 69.06, 296.40°)
OKLaboklab(64.83% 0.0261 -0.1764)
OKLCHoklch(64.83% 0.178 278.4)
XYZxyz(32.2840, 25.7620, 92.0601)
Luminance0.2576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF8 #F8F379
analogous
#79BDF8 #797EF8 #B479F8
triadic
#797EF8 #F8797E #7EF879
tetradic
#797EF8 #F879BD #F8F379 #79F8B4
square
#797EF8 #F879BD #F8F379 #79F8B4
split-complementary
#797EF8 #F8B479 #BDF879
monochromatic
#0C15EA #3F46F5 #797EF8 #B3B6FB #E2E3FD

Accessibility & contrast

On white

3.41
#797EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#797EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF8
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF8#FFFFFF#000000##000000
##797EF81.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FC
Deuteranopia (green-blind)
#3586F5
Tritanopia (blue-blind)
#4399AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ef8;
/* rgb */ color: rgb(121, 126, 248);
/* oklch */ color: oklch(64.8% 0.178 278.4);
Tailwind
colors: {
  custom: {
    50: '#a8a3fb',
    500: '#797ef8',
    950: '#000000',
  },
}
SCSS
$custom: #797ef8;
$custom-light: #a8a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef8",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 248
  },
  "hsl": {
    "h": 237.638,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.6483,
    "c": 0.17828,
    "h": 278.4
  },
  "luminance": 0.25764
}

Semantic roles & 50–950 ramp

primary
#797EF8
secondary
#F6F4D5
accent
#DC00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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