#797CFB#797CFB

#797CFB is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.7% C 0.185 H 278.9°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#797CFB
RGBrgb(121, 124, 251)
HSLhsl(239, 94%, 73%)
HSVhsv(239, 52%, 98%)
CMYKcmyk(51.8%, 50.6%, 0%, 1.6%)
CIE-LABlab(57.50, 32.81, -64.01)
CIE-LCHlch(57.50, 71.92, 297.14°)
OKLaboklab(64.66% 0.0285 -0.1827)
OKLCHoklch(64.66% 0.185 278.9)
XYZxyz(32.5000, 25.4433, 94.4466)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CFB #FBF879
analogous
#79BDFB #797CFB #B779FB
triadic
#797CFB #FB797C #7CFB79
tetradic
#797CFB #FB79BD #FBF879 #79FBB7
square
#797CFB #FB79BD #FBF879 #79FBB7
split-complementary
#797CFB #FBB779 #BDFB79
monochromatic
#070DF2 #3E42F9 #797CFB #B4B6FD #E1E2FE

Accessibility & contrast

On white

3.45
#797CFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#797CFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797CFB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797CFB#FFFFFF#000000##000000
##797CFB1.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8FFF
Deuteranopia (green-blind)
#2B85F8
Tritanopia (blue-blind)
#4198B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797cfb;
/* rgb */ color: rgb(121, 124, 251);
/* oklch */ color: oklch(64.7% 0.185 278.9);
Tailwind
colors: {
  custom: {
    50: '#a8a2fd',
    500: '#797cfb',
    950: '#000000',
  },
}
SCSS
$custom: #797cfb;
$custom-light: #a8a2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797cfb",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 251
  },
  "hsl": {
    "h": 238.615,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.64658,
    "c": 0.1849,
    "h": 278.9
  },
  "luminance": 0.25445
}

Semantic roles & 50–950 ramp

primary
#797CFB
secondary
#F6F6D5
accent
#E000E6
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#100F18
muted
#7F7E86

Preview Lab

Preview with #797CFB

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

Preview Lab → · Contrast checker → · Palette generator →

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