#797CF8#797CF8

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

Color values

HEX#797CF8
RGBrgb(121, 124, 248)
HSLhsl(239, 90%, 72%)
HSVhsv(239, 51%, 97%)
CMYKcmyk(51.2%, 50%, 0%, 2.7%)
CIE-LABlab(57.32, 31.90, -62.64)
CIE-LCHlch(57.32, 70.29, 296.99°)
OKLaboklab(64.46% 0.0283 -0.1787)
OKLCHoklch(64.46% 0.181 279)
XYZxyz(32.0308, 25.2556, 91.9757)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF8 #F8F579
analogous
#79BBF8 #797CF8 #B679F8
triadic
#797CF8 #F8797C #7CF879
tetradic
#797CF8 #F879BB #F8F579 #79F8B6
square
#797CF8 #F879BB #F8F579 #79F8B6
split-complementary
#797CF8 #F8B679 #BBF879
monochromatic
#0C11EA #3F43F5 #797CF8 #B3B5FB #E2E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CF8#FFFFFF#000000##000000
##797CF81.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)
#3F8FFC
Deuteranopia (green-blind)
#3085F5
Tritanopia (blue-blind)
#4397AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797cf8;
/* rgb */ color: rgb(121, 124, 248);
/* oklch */ color: oklch(64.5% 0.181 279.0);
Tailwind
colors: {
  custom: {
    50: '#a8a1fb',
    500: '#797cf8',
    950: '#000000',
  },
}
SCSS
$custom: #797cf8;
$custom-light: #a8a1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf8",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 248
  },
  "hsl": {
    "h": 238.583,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64464,
    "c": 0.18089,
    "h": 279
  },
  "luminance": 0.25258
}

Semantic roles & 50–950 ramp

primary
#797CF8
secondary
#F6F5D5
accent
#E000E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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