#797EF0#797EF0

#797EF0 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.3% C 0.167 H 278.7°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#797EF0
RGBrgb(121, 126, 240)
HSLhsl(237, 80%, 71%)
HSVhsv(237, 50%, 94%)
CMYKcmyk(49.6%, 47.5%, 0%, 5.9%)
CIE-LABlab(57.34, 28.29, -58.18)
CIE-LCHlch(57.34, 64.69, 295.94°)
OKLaboklab(64.33% 0.0253 -0.1655)
OKLCHoklch(64.33% 0.167 278.7)
XYZxyz(31.0693, 25.2761, 85.6628)
Luminance0.2528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF0 #F0EB79
analogous
#79B9F0 #797EF0 #AF79F0
triadic
#797EF0 #F0797E #7EF079
tetradic
#797EF0 #F079B9 #F0EB79 #79F0AF
square
#797EF0 #F079B9 #F0EB79 #79F0AF
split-complementary
#797EF0 #F0AF79 #B9F079
monochromatic
#1820D7 #4249EA #797EF0 #B0B3F6 #E3E5FC

Accessibility & contrast

On white

3.47
#797EF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#797EF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF0
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF0#FFFFFF#000000##000000
##797EF01.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8EF4
Deuteranopia (green-blind)
#4085EE
Tritanopia (blue-blind)
#4A97AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef0;
/* rgb */ color: rgb(121, 126, 240);
/* oklch */ color: oklch(64.3% 0.167 278.7);
Tailwind
colors: {
  custom: {
    50: '#a7a3f5',
    500: '#797ef0',
    950: '#000000',
  },
}
SCSS
$custom: #797ef0;
$custom-light: #a7a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef0",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 240
  },
  "hsl": {
    "h": 237.479,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.64328,
    "c": 0.16746,
    "h": 278.7
  },
  "luminance": 0.25278
}

Semantic roles & 50–950 ramp

primary
#797EF0
secondary
#F2F1D2
accent
#D309DC
background
#FAFAFF
surface
#F4F3FE
border
#CECDD6
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF0

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

Preview Lab → · Contrast checker → · Palette generator →

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