#797AFF#797AFF

#797AFF is a light, vivid blue. Relative luminance 0.252; OKLCH L 64.6% C 0.193 H 279.2°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#797AFF
RGBrgb(121, 122, 255)
HSLhsl(240, 100%, 74%)
HSVhsv(240, 53%, 100%)
CMYKcmyk(52.5%, 52.2%, 0%, 0%)
CIE-LABlab(57.27, 35.20, -66.59)
CIE-LCHlch(57.27, 75.32, 297.86°)
OKLaboklab(64.56% 0.0309 -0.1903)
OKLCHoklch(64.56% 0.193 279.2)
XYZxyz(32.8891, 25.2020, 97.7198)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AFF #FFFE79
analogous
#79BDFF #797AFF #BB79FF
triadic
#797AFF #FF797A #7AFF79
tetradic
#797AFF #FF79BD #FFFE79 #79FFBB
square
#797AFF #FF79BD #FFFE79 #79FFBB
split-complementary
#797AFF #FFBB79 #BDFF79
monochromatic
#0002FE #3C3DFF #797AFF #B6B7FF #E0E1FF

Accessibility & contrast

On white

3.48
#797AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#797AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AFF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AFF#FFFFFF#000000##000000
##797AFF1.003.486.046.04
#FFFFFF3.481.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#308FFF
Deuteranopia (green-blind)
#1984FC
Tritanopia (blue-blind)
#3D98B1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797aff;
/* rgb */ color: rgb(121, 122, 255);
/* oklch */ color: oklch(64.6% 0.193 279.2);
Tailwind
colors: {
  custom: {
    50: '#a9a0ff',
    500: '#797aff',
    950: '#000000',
  },
}
SCSS
$custom: #797aff;
$custom-light: #a9a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797aff",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 239.552,
    "s": 100,
    "l": 73.725
  },
  "oklch": {
    "l": 0.64562,
    "c": 0.19278,
    "h": 279.2
  },
  "luminance": 0.25204
}

Semantic roles & 50–950 ramp

primary
#797AFF
secondary
#F7F7D4
accent
#E400E6
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #797AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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