#797AEC#797AEC

#797AEC is a light, vivid blue. Relative luminance 0.240; OKLCH L 63.3% C 0.167 H 280.1°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#797AEC
RGBrgb(121, 122, 236)
HSLhsl(239, 75%, 70%)
HSVhsv(239, 49%, 93%)
CMYKcmyk(48.7%, 48.3%, 0%, 7.5%)
CIE-LABlab(56.13, 29.47, -57.90)
CIE-LCHlch(56.13, 64.97, 296.97°)
OKLaboklab(63.33% 0.0294 -0.1648)
OKLCHoklch(63.33% 0.167 280.1)
XYZxyz(29.9804, 24.0385, 82.4008)
Luminance0.2404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797AEC #ECEB79
analogous
#79B4EC #797AEC #B179EC
triadic
#797AEC #EC797A #7AEC79
tetradic
#797AEC #EC79B4 #ECEB79 #79ECB1
square
#797AEC #EC79B4 #ECEB79 #79ECB1
split-complementary
#797AEC #ECB179 #B4EC79
monochromatic
#1D1FCD #4345E4 #797AEC #AFAFF4 #E4E4FB

Accessibility & contrast

On white

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

On black

5.81
#797AEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797AEC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797AEC#FFFFFF#000000##000000
##797AEC1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#478BF0
Deuteranopia (green-blind)
#3D82E9
Tritanopia (blue-blind)
#4D93A8
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #797aec;
/* rgb */ color: rgb(121, 122, 236);
/* oklch */ color: oklch(63.3% 0.167 280.1);
Tailwind
colors: {
  custom: {
    50: '#a6a0f3',
    500: '#797aec',
    950: '#000000',
  },
}
SCSS
$custom: #797aec;
$custom-light: #a6a0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#797aec",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 239.478,
    "s": 75.163,
    "l": 70
  },
  "oklch": {
    "l": 0.63334,
    "c": 0.16736,
    "h": 280.1
  },
  "luminance": 0.2404
}

Semantic roles & 50–950 ramp

primary
#797AEC
secondary
#F0F0D0
accent
#D60ED7
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #797AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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