#797FE7#797FE7

#797FE7 is a light, vivid blue. Relative luminance 0.250; OKLCH L 64.0% C 0.154 H 278.6°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#797FE7
RGBrgb(121, 127, 231)
HSLhsl(237, 70%, 69%)
HSVhsv(237, 48%, 91%)
CMYKcmyk(47.6%, 45%, 0%, 9.4%)
CIE-LABlab(57.09, 25.00, -53.58)
CIE-LCHlch(57.09, 59.13, 295.01°)
OKLaboklab(63.97% 0.023 -0.152)
OKLCHoklch(63.97% 0.154 278.6)
XYZxyz(29.8939, 25.0116, 78.8383)
Luminance0.2501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FE7 #E7E179
analogous
#79B6E7 #797FE7 #AA79E7
triadic
#797FE7 #E7797F #7FE779
tetradic
#797FE7 #E779B6 #E7E179 #79E7AA
square
#797FE7 #E779B6 #E7E179 #79E7AA
split-complementary
#797FE7 #E7AA79 #B6E779
monochromatic
#232CC3 #454DDE #797FE7 #ADB1F0 #E1E2FA

Accessibility & contrast

On white

3.50
#797FE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#797FE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FE7
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FE7#FFFFFF#000000##000000
##797FE71.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#548DEB
Deuteranopia (green-blind)
#4B85E5
Tritanopia (blue-blind)
#5095A8
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #797fe7;
/* rgb */ color: rgb(121, 127, 231);
/* oklch */ color: oklch(64.0% 0.154 278.6);
Tailwind
colors: {
  custom: {
    50: '#a6a4ef',
    500: '#797fe7',
    950: '#000000',
  },
}
SCSS
$custom: #797fe7;
$custom-light: #a6a4ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797fe7",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 231
  },
  "hsl": {
    "h": 236.727,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63969,
    "c": 0.15378,
    "h": 278.6
  },
  "luminance": 0.25013
}

Semantic roles & 50–950 ramp

primary
#797FE7
secondary
#EEECCE
accent
#C714D2
background
#FAFAFE
surface
#F4F4FD
border
#CECED5
text
#100F16
muted
#7F7F84

Preview Lab

Preview with #797FE7

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

Preview Lab → · Contrast checker → · Palette generator →

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