#797EFD#797EFD

#797EFD is a light, vivid blue. Relative luminance 0.261; OKLCH L 65.2% C 0.185 H 278.2°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#797EFD
RGBrgb(121, 126, 253)
HSLhsl(238, 97%, 73%)
HSVhsv(238, 52%, 99%)
CMYKcmyk(52.2%, 50.2%, 0%, 0.8%)
CIE-LABlab(58.11, 32.23, -64.14)
CIE-LCHlch(58.11, 71.78, 296.68°)
OKLaboklab(65.15% 0.0265 -0.183)
OKLCHoklch(65.15% 0.185 278.2)
XYZxyz(33.0701, 26.0764, 96.2001)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EFD #FDF879
analogous
#79C0FD #797EFD #B679FD
triadic
#797EFD #FD797E #7EFD79
tetradic
#797EFD #FD79C0 #FDF879 #79FDB6
square
#797EFD #FD79C0 #FDF879 #79FDB6
split-complementary
#797EFD #FDB679 #C0FD79
monochromatic
#040DF8 #3D44FC #797EFD #B5B8FE #E1E2FF

Accessibility & contrast

On white

3.38
#797EFD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#797EFD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EFD
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EFD#FFFFFF#000000##000000
##797EFD1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E91FF
Deuteranopia (green-blind)
#2D87FA
Tritanopia (blue-blind)
#3E9AB2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #797efd;
/* rgb */ color: rgb(121, 126, 253);
/* oklch */ color: oklch(65.2% 0.185 278.2);
Tailwind
colors: {
  custom: {
    50: '#a8a3ff',
    500: '#797efd',
    950: '#000000',
  },
}
SCSS
$custom: #797efd;
$custom-light: #a8a3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#797efd",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 253
  },
  "hsl": {
    "h": 237.727,
    "s": 97.059,
    "l": 73.333
  },
  "oklch": {
    "l": 0.65152,
    "c": 0.18496,
    "h": 278.2
  },
  "luminance": 0.26079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797EFD

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

Preview Lab → · Contrast checker → · Palette generator →

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