#797AE2#797AE2

#797AE2 is a light, vivid blue. Relative luminance 0.235; OKLCH L 62.7% C 0.154 H 280.6°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#797AE2
RGBrgb(121, 122, 226)
HSLhsl(239, 64%, 68%)
HSVhsv(239, 46%, 89%)
CMYKcmyk(46.5%, 46%, 0%, 11.4%)
CIE-LABlab(55.56, 26.49, -53.23)
CIE-LCHlch(55.56, 59.45, 296.46°)
OKLaboklab(62.72% 0.0283 -0.151)
OKLCHoklch(62.72% 0.154 280.6)
XYZxyz(28.5680, 23.4736, 74.9623)
Luminance0.2347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AE2 #E2E179
analogous
#79AEE2 #797AE2 #AD79E2
triadic
#797AE2 #E2797A #7AE279
tetradic
#797AE2 #E279AE #E2E179 #79E2AD
square
#797AE2 #E279AE #E2E179 #79E2AD
split-complementary
#797AE2 #E2AD79 #AEE279
monochromatic
#2829B9 #4748D7 #797AE2 #ABACED #DEDEF8

Accessibility & contrast

On white

3.69
#797AE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#797AE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AE2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AE2#FFFFFF#000000##000000
##797AE21.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F89E6
Deuteranopia (green-blind)
#4881E0
Tritanopia (blue-blind)
#5490A3
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #797ae2;
/* rgb */ color: rgb(121, 122, 226);
/* oklch */ color: oklch(62.7% 0.154 280.6);
Tailwind
colors: {
  custom: {
    50: '#a5a0ec',
    500: '#797ae2',
    950: '#000000',
  },
}
SCSS
$custom: #797ae2;
$custom-light: #a5a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#797ae2",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 226
  },
  "hsl": {
    "h": 239.429,
    "s": 64.417,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6272,
    "c": 0.15366,
    "h": 280.6
  },
  "luminance": 0.23475
}

Semantic roles & 50–950 ramp

primary
#797AE2
secondary
#EBEBCB
accent
#CB19CC
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #797AE2

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

Preview Lab → · Contrast checker → · Palette generator →

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