#797DF4#797DF4

#797DF4 is a light, vivid blue. Relative luminance 0.253; OKLCH L 64.4% C 0.174 H 278.9°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#797DF4
RGBrgb(121, 125, 244)
HSLhsl(238, 85%, 72%)
HSVhsv(238, 50%, 96%)
CMYKcmyk(50.4%, 48.8%, 0%, 4.3%)
CIE-LABlab(57.33, 30.09, -60.42)
CIE-LCHlch(57.33, 67.50, 296.48°)
OKLaboklab(64.39% 0.0268 -0.1721)
OKLCHoklch(64.39% 0.174 278.9)
XYZxyz(31.5428, 25.2620, 88.7844)
Luminance0.2526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797DF4 #F4F079
analogous
#79BBF4 #797DF4 #B379F4
triadic
#797DF4 #F4797D #7DF479
tetradic
#797DF4 #F479BB #F4F079 #79F4B3
square
#797DF4 #F479BB #F4F079 #79F4B3
split-complementary
#797DF4 #F4B379 #BBF479
monochromatic
#1219E0 #4046EF #797DF4 #B2B4F9 #E3E4FD

Accessibility & contrast

On white

3.47
#797DF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#797DF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797DF4
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797DF4#FFFFFF#000000##000000
##797DF41.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#458FF8
Deuteranopia (green-blind)
#3985F1
Tritanopia (blue-blind)
#4797AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797df4;
/* rgb */ color: rgb(121, 125, 244);
/* oklch */ color: oklch(64.4% 0.174 278.9);
Tailwind
colors: {
  custom: {
    50: '#a7a2f8',
    500: '#797df4',
    950: '#000000',
  },
}
SCSS
$custom: #797df4;
$custom-light: #a7a2f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797df4",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 244
  },
  "hsl": {
    "h": 238.049,
    "s": 84.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64392,
    "c": 0.17421,
    "h": 278.9
  },
  "luminance": 0.25264
}

Semantic roles & 50–950 ramp

primary
#797DF4
secondary
#F4F3D5
accent
#DA04E1
background
#FAFAFF
surface
#F4F3FF
border
#CECDD7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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