#797EF7#797EF7

#797EF7 is a light, vivid blue. Relative luminance 0.257; OKLCH L 64.8% C 0.177 H 278.5°. Best body text is #000000 at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#797EF7
RGBrgb(121, 126, 247)
HSLhsl(238, 89%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51%, 49%, 0%, 3.1%)
CIE-LABlab(57.75, 30.41, -61.40)
CIE-LCHlch(57.75, 68.52, 296.35°)
OKLaboklab(64.77% 0.026 -0.175)
OKLCHoklch(64.77% 0.177 278.5)
XYZxyz(32.1293, 25.7001, 91.2453)
Luminance0.2570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF7 #F7F279
analogous
#79BDF7 #797EF7 #B379F7
triadic
#797EF7 #F7797E #7EF779
tetradic
#797EF7 #F779BD #F7F279 #79F7B3
square
#797EF7 #F779BD #F7F279 #79F7B3
split-complementary
#797EF7 #F7B379 #BDF779
monochromatic
#0E16E8 #3F46F4 #797EF7 #B3B6FA #E2E3FD

Accessibility & contrast

On white

3.42
#797EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.14
#797EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EF7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EF7#FFFFFF#000000##000000
##797EF71.003.426.146.14
#FFFFFF3.421.0021.0021.00
#0000006.1421.001.001.00
##0000006.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FB
Deuteranopia (green-blind)
#3786F4
Tritanopia (blue-blind)
#4499AF
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ef7;
/* rgb */ color: rgb(121, 126, 247);
/* oklch */ color: oklch(64.8% 0.177 278.5);
Tailwind
colors: {
  custom: {
    50: '#a7a3fa',
    500: '#797ef7',
    950: '#000000',
  },
}
SCSS
$custom: #797ef7;
$custom-light: #a7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef7",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 247
  },
  "hsl": {
    "h": 237.619,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64767,
    "c": 0.17693,
    "h": 278.5
  },
  "luminance": 0.25702
}

Semantic roles & 50–950 ramp

primary
#797EF7
secondary
#F5F4D6
accent
#DC00E5
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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