#797AF5#797AF5

#797AF5 is a light, vivid blue. Relative luminance 0.246; OKLCH L 63.9% C 0.179 H 279.7°. Best body text is #000000 at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#797AF5
RGBrgb(121, 122, 245)
HSLhsl(240, 86%, 72%)
HSVhsv(240, 51%, 96%)
CMYKcmyk(50.6%, 50.2%, 0%, 3.9%)
CIE-LABlab(56.66, 32.17, -62.05)
CIE-LCHlch(56.66, 69.89, 297.41°)
OKLaboklab(63.91% 0.0302 -0.1769)
OKLCHoklch(63.91% 0.18 279.7)
XYZxyz(31.3210, 24.5748, 89.4615)
Luminance0.2458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AF5 #F5F479
analogous
#79B8F5 #797AF5 #B679F5
triadic
#797AF5 #F5797A #7AF579
tetradic
#797AF5 #F579B8 #F5F479 #79F5B6
square
#797AF5 #F579B8 #F5F479 #79F5B6
split-complementary
#797AF5 #F5B679 #B8F579
monochromatic
#1113E3 #4041F1 #797AF5 #B2B3F9 #E3E3FD

Accessibility & contrast

On white

3.55
#797AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.92
#797AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AF5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AF5#FFFFFF#000000##000000
##797AF51.003.555.925.92
#FFFFFF3.551.0021.0021.00
#0000005.9221.001.001.00
##0000005.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8DF9
Deuteranopia (green-blind)
#3083F2
Tritanopia (blue-blind)
#4695AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797af5;
/* rgb */ color: rgb(121, 122, 245);
/* oklch */ color: oklch(63.9% 0.179 279.7);
Tailwind
colors: {
  custom: {
    50: '#a7a0f9',
    500: '#797af5',
    950: '#000000',
  },
}
SCSS
$custom: #797af5;
$custom-light: #a7a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797af5",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 239.516,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.63906,
    "c": 0.1795,
    "h": 279.7
  },
  "luminance": 0.24577
}

Semantic roles & 50–950 ramp

primary
#797AF5
secondary
#F5F4D5
accent
#E103E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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