#797EF4#797EF4

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

Color values

HEX#797EF4
RGBrgb(121, 126, 244)
HSLhsl(238, 85%, 72%)
HSVhsv(238, 50%, 96%)
CMYKcmyk(50.4%, 48.4%, 0%, 4.3%)
CIE-LABlab(57.58, 29.50, -60.02)
CIE-LCHlch(57.58, 66.88, 296.17°)
OKLaboklab(64.58% 0.0257 -0.171)
OKLCHoklch(64.58% 0.173 278.6)
XYZxyz(31.6701, 25.5164, 88.8268)
Luminance0.2552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EF4 #F4EF79
analogous
#79BCF4 #797EF4 #B279F4
triadic
#797EF4 #F4797E #7EF479
tetradic
#797EF4 #F479BC #F4EF79 #79F4B2
square
#797EF4 #F479BC #F4EF79 #79F4B2
split-complementary
#797EF4 #F4B279 #BCF479
monochromatic
#121BE0 #4048EF #797EF4 #B2B4F9 #E3E4FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797EF4#FFFFFF#000000##000000
##797EF41.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)
#478FF8
Deuteranopia (green-blind)
#3B86F1
Tritanopia (blue-blind)
#4798AD
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #797ef4;
/* rgb */ color: rgb(121, 126, 244);
/* oklch */ color: oklch(64.6% 0.173 278.6);
Tailwind
colors: {
  custom: {
    50: '#a7a3f8',
    500: '#797ef4',
    950: '#000000',
  },
}
SCSS
$custom: #797ef4;
$custom-light: #a7a3f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797ef4",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 244
  },
  "hsl": {
    "h": 237.561,
    "s": 84.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64577,
    "c": 0.17289,
    "h": 278.6
  },
  "luminance": 0.25518
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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