#797BF5#797BF5

#797BF5 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.1% C 0.178 H 279.4°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#797BF5
RGBrgb(121, 123, 245)
HSLhsl(239, 86%, 72%)
HSVhsv(239, 51%, 96%)
CMYKcmyk(50.6%, 49.8%, 0%, 3.9%)
CIE-LABlab(56.90, 31.58, -61.66)
CIE-LCHlch(56.90, 69.28, 297.12°)
OKLaboklab(64.09% 0.0291 -0.1758)
OKLCHoklch(64.09% 0.178 279.4)
XYZxyz(31.4444, 24.8216, 89.5026)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF5 #F5F379
analogous
#79B9F5 #797BF5 #B579F5
triadic
#797BF5 #F5797B #7BF579
tetradic
#797BF5 #F579B9 #F5F379 #79F5B5
square
#797BF5 #F579B9 #F5F379 #79F5B5
split-complementary
#797BF5 #F5B579 #B9F579
monochromatic
#1114E3 #4043F1 #797BF5 #B2B3F9 #E3E3FD

Accessibility & contrast

On white

3.52
#797BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#797BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF5#FFFFFF#000000##000000
##797BF51.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#408DF9
Deuteranopia (green-blind)
#3384F2
Tritanopia (blue-blind)
#4696AD
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797bf5;
/* rgb */ color: rgb(121, 123, 245);
/* oklch */ color: oklch(64.1% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#a7a1f9',
    500: '#797bf5',
    950: '#000000',
  },
}
SCSS
$custom: #797bf5;
$custom-light: #a7a1f9;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf5",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 239.032,
    "s": 86.111,
    "l": 71.765
  },
  "oklch": {
    "l": 0.64088,
    "c": 0.17818,
    "h": 279.4
  },
  "luminance": 0.24823
}

Semantic roles & 50–950 ramp

primary
#797BF5
secondary
#F5F4D5
accent
#DF03E3
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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