#797BF4#797BF4

#797BF4 is a light, vivid blue. Relative luminance 0.248; OKLCH L 64.0% C 0.177 H 279.4°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#797BF4
RGBrgb(121, 123, 244)
HSLhsl(239, 85%, 72%)
HSVhsv(239, 50%, 96%)
CMYKcmyk(50.4%, 49.6%, 0%, 4.3%)
CIE-LABlab(56.84, 31.28, -61.20)
CIE-LCHlch(56.84, 68.73, 297.07°)
OKLaboklab(64.02% 0.029 -0.1744)
OKLCHoklch(64.02% 0.177 279.4)
XYZxyz(31.2922, 24.7607, 88.7008)
Luminance0.2476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BF4 #F4F279
analogous
#79B9F4 #797BF4 #B579F4
triadic
#797BF4 #F4797B #7BF479
tetradic
#797BF4 #F479B9 #F4F279 #79F4B5
square
#797BF4 #F479B9 #F4F279 #79F4B5
split-complementary
#797BF4 #F4B579 #B9F479
monochromatic
#1216E0 #4043EF #797BF4 #B2B3F9 #E3E3FD

Accessibility & contrast

On white

3.53
#797BF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#797BF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BF4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BF4#FFFFFF#000000##000000
##797BF41.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#418DF8
Deuteranopia (green-blind)
#3484F1
Tritanopia (blue-blind)
#4796AC
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #797bf4;
/* rgb */ color: rgb(121, 123, 244);
/* oklch */ color: oklch(64.0% 0.177 279.4);
Tailwind
colors: {
  custom: {
    50: '#a7a1f8',
    500: '#797bf4',
    950: '#000000',
  },
}
SCSS
$custom: #797bf4;
$custom-light: #a7a1f8;
$custom-dark: #000000;
JSON
{
  "hex": "#797bf4",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 244
  },
  "hsl": {
    "h": 239.024,
    "s": 84.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.64024,
    "c": 0.17684,
    "h": 279.4
  },
  "luminance": 0.24763
}

Semantic roles & 50–950 ramp

primary
#797BF4
secondary
#F4F4D5
accent
#DE04E1
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100F17
muted
#7F7E85

Preview Lab

Preview with #797BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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