#797AF0#797AF0

#797AF0 is a light, vivid blue. Relative luminance 0.243; OKLCH L 63.6% C 0.173 H 279.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#797AF0
RGBrgb(121, 122, 240)
HSLhsl(239, 80%, 71%)
HSVhsv(239, 50%, 94%)
CMYKcmyk(49.6%, 49.2%, 0%, 5.9%)
CIE-LABlab(56.36, 30.67, -59.75)
CIE-LCHlch(56.36, 67.16, 297.17°)
OKLaboklab(63.59% 0.0298 -0.1702)
OKLCHoklch(63.59% 0.173 279.9)
XYZxyz(30.5680, 24.2736, 85.4957)
Luminance0.2427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF0 #F0EF79
analogous
#79B5F0 #797AF0 #B379F0
triadic
#797AF0 #F0797A #7AF079
tetradic
#797AF0 #F079B5 #F0EF79 #79F0B3
square
#797AF0 #F079B5 #F0EF79 #79F0B3
split-complementary
#797AF0 #F0B379 #B5F079
monochromatic
#181AD7 #4243EA #797AF0 #B0B1F6 #E3E4FC

Accessibility & contrast

On white

3.59
#797AF0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#797AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF0
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF0#FFFFFF#000000##000000
##797AF01.003.595.865.86
#FFFFFF3.591.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#438CF4
Deuteranopia (green-blind)
#3883ED
Tritanopia (blue-blind)
#4A94AA
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797af0;
/* rgb */ color: rgb(121, 122, 240);
/* oklch */ color: oklch(63.6% 0.173 279.9);
Tailwind
colors: {
  custom: {
    50: '#a7a0f6',
    500: '#797af0',
    950: '#000000',
  },
}
SCSS
$custom: #797af0;
$custom-light: #a7a0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#797af0",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 240
  },
  "hsl": {
    "h": 239.496,
    "s": 79.866,
    "l": 70.784
  },
  "oklch": {
    "l": 0.63586,
    "c": 0.17279,
    "h": 279.9
  },
  "luminance": 0.24275
}

Semantic roles & 50–950 ramp

primary
#797AF0
secondary
#F2F2D2
accent
#DA09DC
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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