#797FF4#797FF4

#797FF4 is a light, vivid blue. Relative luminance 0.258; OKLCH L 64.8% C 0.172 H 278.2°. Best body text is #000000 at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#797FF4
RGBrgb(121, 127, 244)
HSLhsl(237, 85%, 72%)
HSVhsv(237, 50%, 96%)
CMYKcmyk(50.4%, 48%, 0%, 4.3%)
CIE-LABlab(57.82, 28.91, -59.63)
CIE-LCHlch(57.82, 66.27, 295.86°)
OKLaboklab(64.76% 0.0246 -0.1698)
OKLCHoklch(64.76% 0.172 278.2)
XYZxyz(31.7986, 25.7735, 88.8696)
Luminance0.2577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FF4 #F4EE79
analogous
#79BDF4 #797FF4 #B179F4
triadic
#797FF4 #F4797F #7FF479
tetradic
#797FF4 #F479BD #F4EE79 #79F4B1
square
#797FF4 #F479BD #F4EE79 #79F4B1
split-complementary
#797FF4 #F4B179 #BDF479
monochromatic
#121CE0 #4049EF #797FF4 #B2B5F9 #E3E4FD

Accessibility & contrast

On white

3.41
#797FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.15
#797FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FF4
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FF4#FFFFFF#000000##000000
##797FF41.003.416.156.15
#FFFFFF3.411.0021.0021.00
#0000006.1521.001.001.00
##0000006.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4990F8
Deuteranopia (green-blind)
#3D86F1
Tritanopia (blue-blind)
#4698AE
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #797ff4;
/* rgb */ color: rgb(121, 127, 244);
/* oklch */ color: oklch(64.8% 0.172 278.2);
Tailwind
colors: {
  custom: {
    50: '#a7a4f8',
    500: '#797ff4',
    950: '#000000',
  },
}
SCSS
$custom: #797ff4;
$custom-light: #a7a4f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797ff4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 244
  },
  "hsl": {
    "h": 237.073,
    "s": 84.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64763,
    "c": 0.17157,
    "h": 278.2
  },
  "luminance": 0.25775
}

Semantic roles & 50–950 ramp

primary
#797FF4
secondary
#F4F3D5
accent
#D704E1
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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