#797DFE#797DFE

#797DFE is a light, vivid blue. Relative luminance 0.259; OKLCH L 65.0% C 0.188 H 278.5°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#797DFE
RGBrgb(121, 125, 254)
HSLhsl(238, 99%, 74%)
HSVhsv(238, 52%, 100%)
CMYKcmyk(52.4%, 50.8%, 0%, 0.4%)
CIE-LABlab(57.93, 33.13, -64.98)
CIE-LCHlch(57.93, 72.94, 297.01°)
OKLaboklab(65.04% 0.0277 -0.1855)
OKLCHoklch(65.04% 0.188 278.5)
XYZxyz(33.1026, 25.8859, 96.9989)
Luminance0.2589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DFE #FEFA79
analogous
#79C0FE #797DFE #B779FE
triadic
#797DFE #FE797D #7DFE79
tetradic
#797DFE #FE79C0 #FEFA79 #79FEB7
square
#797DFE #FE79C0 #FEFA79 #79FEB7
split-complementary
#797DFE #FEB779 #C0FE79
monochromatic
#0209FB #3C42FE #797DFE #B6B8FE #E1E2FF

Accessibility & contrast

On white

3.40
#797DFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#797DFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DFE
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DFE#FFFFFF#000000##000000
##797DFE1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A91FF
Deuteranopia (green-blind)
#2886FB
Tritanopia (blue-blind)
#3D9AB2
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797dfe;
/* rgb */ color: rgb(121, 125, 254);
/* oklch */ color: oklch(65.0% 0.188 278.5);
Tailwind
colors: {
  custom: {
    50: '#a8a2ff',
    500: '#797dfe',
    950: '#000000',
  },
}
SCSS
$custom: #797dfe;
$custom-light: #a8a2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797dfe",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 254
  },
  "hsl": {
    "h": 238.195,
    "s": 98.519,
    "l": 73.529
  },
  "oklch": {
    "l": 0.65035,
    "c": 0.18759,
    "h": 278.5
  },
  "luminance": 0.25888
}

Semantic roles & 50–950 ramp

primary
#797DFE
secondary
#F7F6D4
accent
#DF00E6
background
#FAFAFF
surface
#F5F3FF
border
#CFCDD7
text
#110F18
muted
#807F86

Preview Lab

Preview with #797DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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