#797AF8#797AF8

#797AF8 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.1% C 0.184 H 279.5°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#797AF8
RGBrgb(121, 122, 248)
HSLhsl(240, 90%, 72%)
HSVhsv(240, 51%, 97%)
CMYKcmyk(51.2%, 50.8%, 0%, 2.7%)
CIE-LABlab(56.84, 33.08, -63.42)
CIE-LCHlch(56.84, 71.53, 297.55°)
OKLaboklab(64.1% 0.0304 -0.181)
OKLCHoklch(64.1% 0.184 279.5)
XYZxyz(31.7827, 24.7594, 91.8930)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF8 #F8F779
analogous
#79B9F8 #797AF8 #B879F8
triadic
#797AF8 #F8797A #7AF879
tetradic
#797AF8 #F879B9 #F8F779 #79F8B8
square
#797AF8 #F879B9 #F8F779 #79F8B8
split-complementary
#797AF8 #F8B879 #B9F879
monochromatic
#0C0EEA #3F40F5 #797AF8 #B3B4FB #E2E2FD

Accessibility & contrast

On white

3.53
#797AF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797AF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF8#FFFFFF#000000##000000
##797AF81.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A8DFC
Deuteranopia (green-blind)
#2B84F5
Tritanopia (blue-blind)
#4496AE
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797af8;
/* rgb */ color: rgb(121, 122, 248);
/* oklch */ color: oklch(64.1% 0.184 279.5);
Tailwind
colors: {
  custom: {
    50: '#a8a0fb',
    500: '#797af8',
    950: '#000000',
  },
}
SCSS
$custom: #797af8;
$custom-light: #a8a0fb;
$custom-dark: #000000;
JSON
{
  "hex": "#797af8",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 239.528,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64101,
    "c": 0.18351,
    "h": 279.5
  },
  "luminance": 0.24761
}

Semantic roles & 50–950 ramp

primary
#797AF8
secondary
#F6F5D5
accent
#E400E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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