#797BFC#797BFC

#797BFC is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.5% C 0.188 H 279.1°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#797BFC
RGBrgb(121, 123, 252)
HSLhsl(239, 96%, 73%)
HSVhsv(239, 52%, 99%)
CMYKcmyk(52%, 51.2%, 0%, 1.2%)
CIE-LABlab(57.33, 33.70, -64.85)
CIE-LCHlch(57.33, 73.08, 297.46°)
OKLaboklab(64.54% 0.0296 -0.1852)
OKLCHoklch(64.54% 0.188 279.1)
XYZxyz(32.5333, 25.2572, 95.2374)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BFC #FCFA79
analogous
#79BCFC #797BFC #B879FC
triadic
#797BFC #FC797B #7BFC79
tetradic
#797BFC #FC79BC #FCFA79 #79FCB8
square
#797BFC #FC79BC #FCFA79 #79FCB8
split-complementary
#797BFC #FCB879 #BCFC79
monochromatic
#0509F5 #3D40FB #797BFC #B5B6FD #E1E2FE

Accessibility & contrast

On white

3.47
#797BFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#797BFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BFC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BFC#FFFFFF#000000##000000
##797BFC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#378FFF
Deuteranopia (green-blind)
#2585F9
Tritanopia (blue-blind)
#4098B0
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797bfc;
/* rgb */ color: rgb(121, 123, 252);
/* oklch */ color: oklch(64.5% 0.188 279.1);
Tailwind
colors: {
  custom: {
    50: '#a8a1fe',
    500: '#797bfc',
    950: '#000000',
  },
}
SCSS
$custom: #797bfc;
$custom-light: #a8a1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#797bfc",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 252
  },
  "hsl": {
    "h": 239.084,
    "s": 95.62,
    "l": 73.137
  },
  "oklch": {
    "l": 0.64543,
    "c": 0.18753,
    "h": 279.1
  },
  "luminance": 0.25259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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