#797AE7#797AE7

#797AE7 is a light, vivid blue. Relative luminance 0.238; OKLCH L 63.0% C 0.161 H 280.4°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#797AE7
RGBrgb(121, 122, 231)
HSLhsl(239, 70%, 69%)
HSVhsv(239, 48%, 91%)
CMYKcmyk(47.6%, 47.2%, 0%, 9.4%)
CIE-LABlab(55.84, 27.98, -55.57)
CIE-LCHlch(55.84, 62.22, 296.72°)
OKLaboklab(63.02% 0.0289 -0.1579)
OKLCHoklch(63.02% 0.161 280.4)
XYZxyz(29.2641, 23.7520, 78.6284)
Luminance0.2375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE7 #E7E679
analogous
#79B1E7 #797AE7 #AF79E7
triadic
#797AE7 #E7797A #7AE779
tetradic
#797AE7 #E779B1 #E7E679 #79E7AF
square
#797AE7 #E779B1 #E7E679 #79E7AF
split-complementary
#797AE7 #E7AF79 #B1E779
monochromatic
#2324C3 #4546DE #797AE7 #ADAEF0 #E1E1FA

Accessibility & contrast

On white

3.65
#797AE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#797AE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE7
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE7#FFFFFF#000000##000000
##797AE71.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8AEB
Deuteranopia (green-blind)
#4382E5
Tritanopia (blue-blind)
#5191A5
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797ae7;
/* rgb */ color: rgb(121, 122, 231);
/* oklch */ color: oklch(63.0% 0.161 280.4);
Tailwind
colors: {
  custom: {
    50: '#a6a0ef',
    500: '#797ae7',
    950: '#000000',
  },
}
SCSS
$custom: #797ae7;
$custom-light: #a6a0ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae7",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 231
  },
  "hsl": {
    "h": 239.455,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63024,
    "c": 0.16053,
    "h": 280.4
  },
  "luminance": 0.23754
}

Semantic roles & 50–950 ramp

primary
#797AE7
secondary
#EEEECE
accent
#D014D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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