#797CF7#797CF7

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

Color values

HEX#797CF7
RGBrgb(121, 124, 247)
HSLhsl(239, 89%, 72%)
HSVhsv(239, 51%, 97%)
CMYKcmyk(51%, 49.8%, 0%, 3.1%)
CIE-LABlab(57.26, 31.59, -62.18)
CIE-LCHlch(57.26, 69.75, 296.93°)
OKLaboklab(64.4% 0.0282 -0.1773)
OKLCHoklch(64.4% 0.18 279)
XYZxyz(31.8761, 25.1938, 91.1609)
Luminance0.2520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797CF7 #F7F479
analogous
#79BBF7 #797CF7 #B579F7
triadic
#797CF7 #F7797C #7CF779
tetradic
#797CF7 #F779BB #F7F479 #79F7B5
square
#797CF7 #F779BB #F7F479 #79F7B5
split-complementary
#797CF7 #F7B579 #BBF779
monochromatic
#0E13E8 #3F44F4 #797CF7 #B3B4FA #E2E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797CF7#FFFFFF#000000##000000
##797CF71.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)
#408FFB
Deuteranopia (green-blind)
#3285F4
Tritanopia (blue-blind)
#4497AE
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797cf7;
/* rgb */ color: rgb(121, 124, 247);
/* oklch */ color: oklch(64.4% 0.180 279.0);
Tailwind
colors: {
  custom: {
    50: '#a8a1fa',
    500: '#797cf7',
    950: '#000000',
  },
}
SCSS
$custom: #797cf7;
$custom-light: #a8a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797cf7",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 247
  },
  "hsl": {
    "h": 238.571,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.644,
    "c": 0.17956,
    "h": 279
  },
  "luminance": 0.25196
}

Semantic roles & 50–950 ramp

primary
#797CF7
secondary
#F5F5D6
accent
#E000E5
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797CF7

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

Preview Lab → · Contrast checker → · Palette generator →

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