#797EA4#797EA4

#797EA4 is a mid, muted blue. Relative luminance 0.217; OKLCH L 60.3% C 0.058 H 278.7°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#797EA4
RGBrgb(121, 126, 164)
HSLhsl(233, 19%, 56%)
HSVhsv(233, 26%, 64%)
CMYKcmyk(26.2%, 23.2%, 0%, 35.7%)
CIE-LABlab(53.67, 6.90, -20.86)
CIE-LCHlch(53.67, 21.97, 288.30°)
OKLaboklab(60.31% 0.0088 -0.0574)
OKLCHoklch(60.31% 0.058 278.7)
XYZxyz(22.0451, 21.6665, 38.1353)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA4 #A49F79
analogous
#7993A4 #797EA4 #8979A4
triadic
#797EA4 #A4797E #7EA479
tetradic
#797EA4 #A47993 #A49F79 #79A489
square
#797EA4 #A47993 #A49F79 #79A489
split-complementary
#797EA4 #A48979 #93A479
monochromatic
#424561 #5B5F85 #797EA4 #9DA1BD #C2C4D6

Accessibility & contrast

On white

3.94
#797EA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#797EA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA4
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA4#FFFFFF#000000##000000
##797EA41.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7382A6
Deuteranopia (green-blind)
#717FA3
Tritanopia (blue-blind)
#6F858B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797ea4;
/* rgb */ color: rgb(121, 126, 164);
/* oklch */ color: oklch(60.3% 0.058 278.7);
Tailwind
colors: {
  custom: {
    50: '#a0a3bf',
    500: '#797ea4',
    950: '#000000',
  },
}
SCSS
$custom: #797ea4;
$custom-light: #a0a3bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea4",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 164
  },
  "hsl": {
    "h": 233.023,
    "s": 19.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60313,
    "c": 0.05804,
    "h": 278.7
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#797EA4
secondary
#C5C3B3
accent
#B26CBC
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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