#797BE7#797BE7

#797BE7 is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.2% C 0.159 H 280.0°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#797BE7
RGBrgb(121, 123, 231)
HSLhsl(239, 70%, 69%)
HSVhsv(239, 48%, 91%)
CMYKcmyk(47.6%, 46.8%, 0%, 9.4%)
CIE-LABlab(56.09, 27.38, -55.18)
CIE-LCHlch(56.09, 61.60, 296.39°)
OKLaboklab(63.21% 0.0277 -0.1567)
OKLCHoklch(63.21% 0.159 280)
XYZxyz(29.3875, 23.9988, 78.6696)
Luminance0.2400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797BE7 #E7E579
analogous
#79B2E7 #797BE7 #AE79E7
triadic
#797BE7 #E7797B #7BE779
tetradic
#797BE7 #E779B2 #E7E579 #79E7AE
square
#797BE7 #E779B2 #E7E579 #79E7AE
split-complementary
#797BE7 #E7AE79 #B2E779
monochromatic
#2326C3 #4548DE #797BE7 #ADAEF0 #E1E1FA

Accessibility & contrast

On white

3.62
#797BE7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#797BE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797BE7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797BE7#FFFFFF#000000##000000
##797BE71.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8BEB
Deuteranopia (green-blind)
#4482E5
Tritanopia (blue-blind)
#5192A6
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797be7;
/* rgb */ color: rgb(121, 123, 231);
/* oklch */ color: oklch(63.2% 0.159 280.0);
Tailwind
colors: {
  custom: {
    50: '#a6a1ef',
    500: '#797be7',
    950: '#000000',
  },
}
SCSS
$custom: #797be7;
$custom-light: #a6a1ef;
$custom-dark: #000000;
JSON
{
  "hex": "#797be7",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 231
  },
  "hsl": {
    "h": 238.909,
    "s": 69.62,
    "l": 69.02
  },
  "oklch": {
    "l": 0.63211,
    "c": 0.15918,
    "h": 280
  },
  "luminance": 0.24
}

Semantic roles & 50–950 ramp

primary
#797BE7
secondary
#EEEDCE
accent
#CE14D2
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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