#797BFD#797BFD

#797BFD is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.6% C 0.189 H 279.0°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#797BFD
RGBrgb(121, 123, 253)
HSLhsl(239, 97%, 73%)
HSVhsv(239, 52%, 99%)
CMYKcmyk(52.2%, 51.4%, 0%, 0.8%)
CIE-LABlab(57.39, 34.00, -65.30)
CIE-LCHlch(57.39, 73.62, 297.51°)
OKLaboklab(64.61% 0.0297 -0.1865)
OKLCHoklch(64.61% 0.189 279)
XYZxyz(32.6922, 25.3207, 96.0742)
Luminance0.2532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BFD #FDFB79
analogous
#79BDFD #797BFD #B979FD
triadic
#797BFD #FD797B #7BFD79
tetradic
#797BFD #FD79BD #FDFB79 #79FDB9
square
#797BFD #FD79BD #FDFB79 #79FDB9
split-complementary
#797BFD #FDB979 #BDFD79
monochromatic
#0407F8 #3D40FC #797BFD #B5B6FE #E1E1FF

Accessibility & contrast

On white

3.46
#797BFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#797BFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BFD
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BFD#FFFFFF#000000##000000
##797BFD1.003.466.066.06
#FFFFFF3.461.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#368FFF
Deuteranopia (green-blind)
#2385FA
Tritanopia (blue-blind)
#3F98B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797bfd;
/* rgb */ color: rgb(121, 123, 253);
/* oklch */ color: oklch(64.6% 0.189 279.0);
Tailwind
colors: {
  custom: {
    50: '#a8a1ff',
    500: '#797bfd',
    950: '#000000',
  },
}
SCSS
$custom: #797bfd;
$custom-light: #a8a1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797bfd",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 253
  },
  "hsl": {
    "h": 239.091,
    "s": 97.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.64609,
    "c": 0.18885,
    "h": 279
  },
  "luminance": 0.25323
}

Semantic roles & 50–950 ramp

primary
#797BFD
secondary
#F7F6D4
accent
#E200E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110F18
muted
#807E86

Preview Lab

Preview with #797BFD

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

Preview Lab → · Contrast checker → · Palette generator →

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