#797EFB#797EFB

#797EFB is a light, vivid blue. Relative luminance 0.260; OKLCH L 65.0% C 0.182 H 278.3°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#797EFB
RGBrgb(121, 126, 251)
HSLhsl(238, 94%, 73%)
HSVhsv(238, 52%, 98%)
CMYKcmyk(51.8%, 49.8%, 0%, 1.6%)
CIE-LABlab(57.99, 31.62, -63.23)
CIE-LCHlch(57.99, 70.70, 296.57°)
OKLaboklab(65.02% 0.0264 -0.1804)
OKLCHoklch(65.02% 0.182 278.3)
XYZxyz(32.7531, 25.9497, 94.5310)
Luminance0.2595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFB #FBF679
analogous
#79BFFB #797EFB #B579FB
triadic
#797EFB #FB797E #7EFB79
tetradic
#797EFB #FB79BF #FBF679 #79FBB5
square
#797EFB #FB79BF #FBF679 #79FBB5
split-complementary
#797EFB #FBB579 #BFFB79
monochromatic
#0710F2 #3E45F9 #797EFB #B4B7FD #E1E2FE

Accessibility & contrast

On white

3.39
#797EFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#797EFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFB
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFB#FFFFFF#000000##000000
##797EFB1.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4091FF
Deuteranopia (green-blind)
#3086F8
Tritanopia (blue-blind)
#409AB1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797efb;
/* rgb */ color: rgb(121, 126, 251);
/* oklch */ color: oklch(65.0% 0.182 278.3);
Tailwind
colors: {
  custom: {
    50: '#a8a3fd',
    500: '#797efb',
    950: '#000000',
  },
}
SCSS
$custom: #797efb;
$custom-light: #a8a3fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797efb",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 251
  },
  "hsl": {
    "h": 237.692,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65022,
    "c": 0.1823,
    "h": 278.3
  },
  "luminance": 0.25952
}

Semantic roles & 50–950 ramp

primary
#797EFB
secondary
#F6F5D5
accent
#DD00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797EFB

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

Preview Lab → · Contrast checker → · Palette generator →

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