#797BFB#797BFB

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

Color values

HEX#797BFB
RGBrgb(121, 123, 251)
HSLhsl(239, 94%, 73%)
HSVhsv(239, 52%, 98%)
CMYKcmyk(51.8%, 51%, 0%, 1.6%)
CIE-LABlab(57.26, 33.40, -64.39)
CIE-LCHlch(57.26, 72.54, 297.41°)
OKLaboklab(64.48% 0.0296 -0.1838)
OKLCHoklch(64.48% 0.186 279.1)
XYZxyz(32.3753, 25.1939, 94.4050)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BFB #FBF979
analogous
#79BCFB #797BFB #B879FB
triadic
#797BFB #FB797B #7BFB79
tetradic
#797BFB #FB79BC #FBF979 #79FBB8
square
#797BFB #FB79BC #FBF979 #79FBB8
split-complementary
#797BFB #FBB879 #BCFB79
monochromatic
#070BF2 #3E40F9 #797BFB #B4B6FD #E1E2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797BFB#FFFFFF#000000##000000
##797BFB1.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)
#388FFF
Deuteranopia (green-blind)
#2884F8
Tritanopia (blue-blind)
#4198AF
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797bfb;
/* rgb */ color: rgb(121, 123, 251);
/* oklch */ color: oklch(64.5% 0.186 279.1);
Tailwind
colors: {
  custom: {
    50: '#a8a1fd',
    500: '#797bfb',
    950: '#000000',
  },
}
SCSS
$custom: #797bfb;
$custom-light: #a8a1fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797bfb",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 251
  },
  "hsl": {
    "h": 239.077,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.64477,
    "c": 0.18619,
    "h": 279.1
  },
  "luminance": 0.25196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797BFB

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

Preview Lab → · Contrast checker → · Palette generator →

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