#797EF1#797EF1

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

Color values

HEX#797EF1
RGBrgb(121, 126, 241)
HSLhsl(238, 81%, 71%)
HSVhsv(238, 50%, 95%)
CMYKcmyk(49.8%, 47.7%, 0%, 5.5%)
CIE-LABlab(57.40, 28.60, -58.64)
CIE-LCHlch(57.40, 65.24, 296.00°)
OKLaboklab(64.39% 0.0254 -0.1669)
OKLCHoklch(64.39% 0.169 278.7)
XYZxyz(31.2183, 25.3357, 86.4473)
Luminance0.2534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF1 #F1EC79
analogous
#79BAF1 #797EF1 #B079F1
triadic
#797EF1 #F1797E #7EF179
tetradic
#797EF1 #F179BA #F1EC79 #79F1B0
square
#797EF1 #F179BA #F1EC79 #79F1B0
split-complementary
#797EF1 #F1B079 #BAF179
monochromatic
#171FD9 #4249EB #797EF1 #B0B3F7 #E3E4FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797EF1#FFFFFF#000000##000000
##797EF11.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)
#4A8FF5
Deuteranopia (green-blind)
#3F85EE
Tritanopia (blue-blind)
#4997AC
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef1;
/* rgb */ color: rgb(121, 126, 241);
/* oklch */ color: oklch(64.4% 0.169 278.7);
Tailwind
colors: {
  custom: {
    50: '#a7a3f6',
    500: '#797ef1',
    950: '#000000',
  },
}
SCSS
$custom: #797ef1;
$custom-light: #a7a3f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef1",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 241
  },
  "hsl": {
    "h": 237.5,
    "s": 81.081,
    "l": 70.98
  },
  "oklch": {
    "l": 0.6439,
    "c": 0.16882,
    "h": 278.7
  },
  "luminance": 0.25338
}

Semantic roles & 50–950 ramp

primary
#797EF1
secondary
#F3F2D3
accent
#D508DD
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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