#797FFB#797FFB

#797FFB is a light, vivid blue. Relative luminance 0.262; OKLCH L 65.2% C 0.181 H 278.0°. Best body text is #000000 at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#797FFB
RGBrgb(121, 127, 251)
HSLhsl(237, 94%, 73%)
HSVhsv(237, 52%, 98%)
CMYKcmyk(51.8%, 49.4%, 0%, 1.6%)
CIE-LABlab(58.23, 31.03, -62.84)
CIE-LCHlch(58.23, 70.08, 296.28°)
OKLaboklab(65.21% 0.0253 -0.1792)
OKLCHoklch(65.21% 0.181 278)
XYZxyz(32.8817, 26.2067, 94.5738)
Luminance0.2621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FFB #FBF579
analogous
#79C0FB #797FFB #B479FB
triadic
#797FFB #FB797F #7FFB79
tetradic
#797FFB #FB79C0 #FBF579 #79FBB4
square
#797FFB #FB79C0 #FBF579 #79FBB4
split-complementary
#797FFB #FBB479 #C0FB79
monochromatic
#0712F2 #3E46F9 #797FFB #B4B8FD #E1E3FE

Accessibility & contrast

On white

3.36
#797FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.24
#797FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FFB
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FFB#FFFFFF#000000##000000
##797FFB1.003.366.246.24
#FFFFFF3.361.0021.0021.00
#0000006.2421.001.001.00
##0000006.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4291FF
Deuteranopia (green-blind)
#3387F8
Tritanopia (blue-blind)
#409AB1
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #797ffb;
/* rgb */ color: rgb(121, 127, 251);
/* oklch */ color: oklch(65.2% 0.181 278.0);
Tailwind
colors: {
  custom: {
    50: '#a8a4fd',
    500: '#797ffb',
    950: '#000000',
  },
}
SCSS
$custom: #797ffb;
$custom-light: #a8a4fd;
$custom-dark: #000000;
JSON
{
  "hex": "#797ffb",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 251
  },
  "hsl": {
    "h": 237.231,
    "s": 94.203,
    "l": 72.941
  },
  "oklch": {
    "l": 0.65206,
    "c": 0.18099,
    "h": 278
  },
  "luminance": 0.26209
}

Semantic roles & 50–950 ramp

primary
#797FFB
secondary
#F6F5D5
accent
#DB00E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F18
muted
#7F7F86

Preview Lab

Preview with #797FFB

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

Preview Lab → · Contrast checker → · Palette generator →

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