#797DF7#797DF7

#797DF7 is a light, vivid blue. Relative luminance 0.254; OKLCH L 64.6% C 0.178 H 278.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#797DF7
RGBrgb(121, 125, 247)
HSLhsl(238, 89%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51%, 49.4%, 0%, 3.1%)
CIE-LABlab(57.51, 31.00, -61.79)
CIE-LCHlch(57.51, 69.13, 296.64°)
OKLaboklab(64.58% 0.0271 -0.1762)
OKLCHoklch(64.58% 0.178 278.7)
XYZxyz(32.0020, 25.4457, 91.2029)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF7 #F7F379
analogous
#79BCF7 #797DF7 #B479F7
triadic
#797DF7 #F7797D #7DF779
tetradic
#797DF7 #F779BC #F7F379 #79F7B4
square
#797DF7 #F779BC #F7F379 #79F7B4
split-complementary
#797DF7 #F7B479 #BCF779
monochromatic
#0E15E8 #3F45F4 #797DF7 #B3B5FA #E2E3FD

Accessibility & contrast

On white

3.45
#797DF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#797DF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF7#FFFFFF#000000##000000
##797DF71.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#428FFB
Deuteranopia (green-blind)
#3485F4
Tritanopia (blue-blind)
#4498AE
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df7;
/* rgb */ color: rgb(121, 125, 247);
/* oklch */ color: oklch(64.6% 0.178 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a2fa',
    500: '#797df7',
    950: '#000000',
  },
}
SCSS
$custom: #797df7;
$custom-light: #a8a2fa;
$custom-dark: #000000;
JSON
{
  "hex": "#797df7",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 247
  },
  "hsl": {
    "h": 238.095,
    "s": 88.732,
    "l": 72.157
  },
  "oklch": {
    "l": 0.64583,
    "c": 0.17824,
    "h": 278.7
  },
  "luminance": 0.25448
}

Semantic roles & 50–950 ramp

primary
#797DF7
secondary
#F5F4D6
accent
#DE00E5
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF7

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

Preview Lab → · Contrast checker → · Palette generator →

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