#797AEA#797AEA

#797AEA is a light, vivid blue. Relative luminance 0.239; OKLCH L 63.2% C 0.165 H 280.2°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#797AEA
RGBrgb(121, 122, 234)
HSLhsl(239, 73%, 70%)
HSVhsv(239, 48%, 92%)
CMYKcmyk(48.3%, 47.9%, 0%, 8.2%)
CIE-LABlab(56.01, 28.87, -56.97)
CIE-LCHlch(56.01, 63.87, 296.87°)
OKLaboklab(63.21% 0.0292 -0.162)
OKLCHoklch(63.21% 0.165 280.2)
XYZxyz(29.6914, 23.9229, 80.8790)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AEA #EAE979
analogous
#79B3EA #797AEA #B179EA
triadic
#797AEA #EA797A #7AEA79
tetradic
#797AEA #EA79B3 #EAE979 #79EAB1
square
#797AEA #EA79B3 #EAE979 #79EAB1
split-complementary
#797AEA #EAB179 #B3EA79
monochromatic
#2021C9 #4445E2 #797AEA #AEAFF2 #E3E3FB

Accessibility & contrast

On white

3.63
#797AEA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#797AEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AEA
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AEA#FFFFFF#000000##000000
##797AEA1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#488BEE
Deuteranopia (green-blind)
#3F82E8
Tritanopia (blue-blind)
#4F92A7
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #797aea;
/* rgb */ color: rgb(121, 122, 234);
/* oklch */ color: oklch(63.2% 0.165 280.2);
Tailwind
colors: {
  custom: {
    50: '#a6a0f1',
    500: '#797aea',
    950: '#000000',
  },
}
SCSS
$custom: #797aea;
$custom-light: #a6a0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#797aea",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 239.469,
    "s": 72.903,
    "l": 69.608
  },
  "oklch": {
    "l": 0.63209,
    "c": 0.16464,
    "h": 280.2
  },
  "luminance": 0.23925
}

Semantic roles & 50–950 ramp

primary
#797AEA
secondary
#F0EFCF
accent
#D311D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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