#797FE9#797FE9

#797FE9 is a light, vivid blue. Relative luminance 0.251; OKLCH L 64.1% C 0.157 H 278.6°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#797FE9
RGBrgb(121, 127, 233)
HSLhsl(237, 72%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(48.1%, 45.5%, 0%, 8.6%)
CIE-LABlab(57.20, 25.60, -54.52)
CIE-LCHlch(57.20, 60.23, 295.15°)
OKLaboklab(64.09% 0.0233 -0.1548)
OKLCHoklch(64.09% 0.157 278.6)
XYZxyz(30.1780, 25.1252, 80.3345)
Luminance0.2513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE9 #E9E379
analogous
#79B7E9 #797FE9 #AB79E9
triadic
#797FE9 #E9797F #7FE979
tetradic
#797FE9 #E979B7 #E9E379 #79E9AB
square
#797FE9 #E979B7 #E9E379 #79E9AB
split-complementary
#797FE9 #E9AB79 #B7E979
monochromatic
#212AC7 #444DE0 #797FE9 #AEB1F2 #E2E3FA

Accessibility & contrast

On white

3.49
#797FE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#797FE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE9
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE9#FFFFFF#000000##000000
##797FE91.003.496.036.03
#FFFFFF3.491.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#538EED
Deuteranopia (green-blind)
#4985E7
Tritanopia (blue-blind)
#4F96A9
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fe9;
/* rgb */ color: rgb(121, 127, 233);
/* oklch */ color: oklch(64.1% 0.157 278.6);
Tailwind
colors: {
  custom: {
    50: '#a6a4f0',
    500: '#797fe9',
    950: '#000000',
  },
}
SCSS
$custom: #797fe9;
$custom-light: #a6a4f0;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe9",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 233
  },
  "hsl": {
    "h": 236.786,
    "s": 71.795,
    "l": 69.412
  },
  "oklch": {
    "l": 0.64089,
    "c": 0.15654,
    "h": 278.6
  },
  "luminance": 0.25127
}

Semantic roles & 50–950 ramp

primary
#797FE9
secondary
#EFEDCF
accent
#C912D4
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F17
muted
#7F7F85

Preview Lab

Preview with #797FE9

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

Preview Lab → · Contrast checker → · Palette generator →

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