#797FEB#797FEB

#797FEB is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.2% C 0.159 H 278.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#797FEB
RGBrgb(121, 127, 235)
HSLhsl(237, 74%, 70%)
HSVhsv(237, 49%, 92%)
CMYKcmyk(48.5%, 46%, 0%, 7.8%)
CIE-LABlab(57.31, 26.20, -55.46)
CIE-LCHlch(57.31, 61.33, 295.29°)
OKLaboklab(64.21% 0.0236 -0.1575)
OKLCHoklch(64.21% 0.159 278.5)
XYZxyz(30.4653, 25.2402, 81.8477)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FEB #EBE579
analogous
#79B8EB #797FEB #AC79EB
triadic
#797FEB #EB797F #7FEB79
tetradic
#797FEB #EB79B8 #EBE579 #79EBAC
square
#797FEB #EB79B8 #EBE579 #79EBAC
split-complementary
#797FEB #EBAC79 #B8EB79
monochromatic
#1E27CB #444CE3 #797FEB #AEB2F3 #E4E5FB

Accessibility & contrast

On white

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

On black

6.05
#797FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FEB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FEB#FFFFFF#000000##000000
##797FEB1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#518EEF
Deuteranopia (green-blind)
#4785E9
Tritanopia (blue-blind)
#4E96AA
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797feb;
/* rgb */ color: rgb(121, 127, 235);
/* oklch */ color: oklch(64.2% 0.159 278.5);
Tailwind
colors: {
  custom: {
    50: '#a6a4f2',
    500: '#797feb',
    950: '#000000',
  },
}
SCSS
$custom: #797feb;
$custom-light: #a6a4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#797feb",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 235
  },
  "hsl": {
    "h": 236.842,
    "s": 74.026,
    "l": 69.804
  },
  "oklch": {
    "l": 0.6421,
    "c": 0.15929,
    "h": 278.5
  },
  "luminance": 0.25242
}

Semantic roles & 50–950 ramp

primary
#797FEB
secondary
#F0EED0
accent
#CC0FD6
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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