#797AF2#797AF2

#797AF2 is a light, vivid blue. Relative luminance 0.244; OKLCH L 63.7% C 0.175 H 279.8°. Best body text is #000000 at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#797AF2
RGBrgb(121, 122, 242)
HSLhsl(240, 82%, 71%)
HSVhsv(240, 50%, 95%)
CMYKcmyk(50%, 49.6%, 0%, 5.1%)
CIE-LABlab(56.48, 31.27, -60.67)
CIE-LCHlch(56.48, 68.26, 297.27°)
OKLaboklab(63.71% 0.03 -0.1729)
OKLCHoklch(63.71% 0.175 279.8)
XYZxyz(30.8668, 24.3931, 87.0691)
Luminance0.2440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF2 #F2F179
analogous
#79B6F2 #797AF2 #B479F2
triadic
#797AF2 #F2797A #7AF279
tetradic
#797AF2 #F279B6 #F2F179 #79F2B4
square
#797AF2 #F279B6 #F2F179 #79F2B4
split-complementary
#797AF2 #F2B479 #B6F279
monochromatic
#1517DB #4143ED #797AF2 #B1B1F7 #E3E3FC

Accessibility & contrast

On white

3.57
#797AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.88
#797AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF2
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF2#FFFFFF#000000##000000
##797AF21.003.575.885.88
#FFFFFF3.571.0021.0021.00
#0000005.8821.001.001.00
##0000005.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#418CF6
Deuteranopia (green-blind)
#3583EF
Tritanopia (blue-blind)
#4994AB
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797af2;
/* rgb */ color: rgb(121, 122, 242);
/* oklch */ color: oklch(63.7% 0.175 279.8);
Tailwind
colors: {
  custom: {
    50: '#a7a0f7',
    500: '#797af2',
    950: '#000000',
  },
}
SCSS
$custom: #797af2;
$custom-light: #a7a0f7;
$custom-dark: #000000;
JSON
{
  "hex": "#797af2",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 239.504,
    "s": 82.313,
    "l": 71.176
  },
  "oklch": {
    "l": 0.63713,
    "c": 0.17547,
    "h": 279.8
  },
  "luminance": 0.24395
}

Semantic roles & 50–950 ramp

primary
#797AF2
secondary
#F3F3D3
accent
#DD07DF
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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