#797DF8#797DF8

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

Color values

HEX#797DF8
RGBrgb(121, 125, 248)
HSLhsl(238, 90%, 72%)
HSVhsv(238, 51%, 97%)
CMYKcmyk(51.2%, 49.6%, 0%, 2.7%)
CIE-LABlab(57.57, 31.30, -62.25)
CIE-LCHlch(57.57, 69.68, 296.70°)
OKLaboklab(64.65% 0.0272 -0.1775)
OKLCHoklch(64.65% 0.18 278.7)
XYZxyz(32.1568, 25.5076, 92.0177)
Luminance0.2551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF8 #F8F479
analogous
#79BDF8 #797DF8 #B479F8
triadic
#797DF8 #F8797D #7DF879
tetradic
#797DF8 #F879BD #F8F479 #79F8B4
square
#797DF8 #F879BD #F8F479 #79F8B4
split-complementary
#797DF8 #F8B479 #BDF879
monochromatic
#0C13EA #3F45F5 #797DF8 #B3B5FB #E2E3FD

Accessibility & contrast

On white

3.44
#797DF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.10
#797DF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF8#FFFFFF#000000##000000
##797DF81.003.446.106.10
#FFFFFF3.441.0021.0021.00
#0000006.1021.001.001.00
##0000006.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFC
Deuteranopia (green-blind)
#3385F5
Tritanopia (blue-blind)
#4398AF
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df8;
/* rgb */ color: rgb(121, 125, 248);
/* oklch */ color: oklch(64.6% 0.180 278.7);
Tailwind
colors: {
  custom: {
    50: '#a8a2fb',
    500: '#797df8',
    950: '#000000',
  },
}
SCSS
$custom: #797df8;
$custom-light: #a8a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#797df8",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 238.11,
    "s": 90.071,
    "l": 72.353
  },
  "oklch": {
    "l": 0.64647,
    "c": 0.17959,
    "h": 278.7
  },
  "luminance": 0.25509
}

Semantic roles & 50–950 ramp

primary
#797DF8
secondary
#F6F5D5
accent
#DE00E6
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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