#797AFD#797AFD

#797AFD is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.4% C 0.190 H 279.3°. Best body text is #000000 at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#797AFD
RGBrgb(121, 122, 253)
HSLhsl(240, 97%, 73%)
HSVhsv(240, 52%, 99%)
CMYKcmyk(52.2%, 51.8%, 0%, 0.8%)
CIE-LABlab(57.15, 34.59, -65.68)
CIE-LCHlch(57.15, 74.24, 297.77°)
OKLaboklab(64.43% 0.0308 -0.1876)
OKLCHoklch(64.43% 0.19 279.3)
XYZxyz(32.5688, 25.0739, 96.0330)
Luminance0.2508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AFD #FDFC79
analogous
#79BCFD #797AFD #BA79FD
triadic
#797AFD #FD797A #7AFD79
tetradic
#797AFD #FD79BC #FDFC79 #79FDBA
square
#797AFD #FD79BC #FDFC79 #79FDBA
split-complementary
#797AFD #FDBA79 #BCFD79
monochromatic
#0406F8 #3D3EFC #797AFD #B5B6FE #E1E1FF

Accessibility & contrast

On white

3.49
#797AFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.02
#797AFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AFD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AFD#FFFFFF#000000##000000
##797AFD1.003.496.026.02
#FFFFFF3.491.0021.0021.00
#0000006.0221.001.001.00
##0000006.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#338EFF
Deuteranopia (green-blind)
#1F84FA
Tritanopia (blue-blind)
#3F97B0
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797afd;
/* rgb */ color: rgb(121, 122, 253);
/* oklch */ color: oklch(64.4% 0.190 279.3);
Tailwind
colors: {
  custom: {
    50: '#a8a0ff',
    500: '#797afd',
    950: '#000000',
  },
}
SCSS
$custom: #797afd;
$custom-light: #a8a0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797afd",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 239.545,
    "s": 97.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64429,
    "c": 0.19014,
    "h": 279.3
  },
  "luminance": 0.25076
}

Semantic roles & 50–950 ramp

primary
#797AFD
secondary
#F7F7D4
accent
#E400E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #797AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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