#797EA1#797EA1

#797EA1 is a mid, muted blue. Relative luminance 0.216; OKLCH L 60.2% C 0.054 H 278.3°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#797EA1
RGBrgb(121, 126, 161)
HSLhsl(233, 18%, 55%)
HSVhsv(233, 25%, 63%)
CMYKcmyk(24.8%, 21.7%, 0%, 36.9%)
CIE-LABlab(53.56, 6.14, -19.29)
CIE-LCHlch(53.56, 20.25, 287.66°)
OKLaboklab(60.19% 0.0077 -0.053)
OKLCHoklch(60.19% 0.054 278.3)
XYZxyz(21.7774, 21.5594, 36.7253)
Luminance0.2156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA1 #A19C79
analogous
#7992A1 #797EA1 #8879A1
triadic
#797EA1 #A1797E #7EA179
tetradic
#797EA1 #A17992 #A19C79 #79A188
square
#797EA1 #A17992 #A19C79 #79A188
split-complementary
#797EA1 #A18879 #92A179
monochromatic
#42455E #5B6082 #797EA1 #9DA1BA #C1C3D3

Accessibility & contrast

On white

3.95
#797EA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#797EA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA1
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA1#FFFFFF#000000##000000
##797EA11.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7481A3
Deuteranopia (green-blind)
#727FA0
Tritanopia (blue-blind)
#6F848A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797ea1;
/* rgb */ color: rgb(121, 126, 161);
/* oklch */ color: oklch(60.2% 0.054 278.3);
Tailwind
colors: {
  custom: {
    50: '#a0a3bd',
    500: '#797ea1',
    950: '#000000',
  },
}
SCSS
$custom: #797ea1;
$custom-light: #a0a3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea1",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 161
  },
  "hsl": {
    "h": 232.5,
    "s": 17.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.60186,
    "c": 0.05353,
    "h": 278.3
  },
  "luminance": 0.2156
}

Semantic roles & 50–950 ramp

primary
#797EA1
secondary
#C3C1B3
accent
#B16EBA
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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