#797EA2#797EA2

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

Color values

HEX#797EA2
RGBrgb(121, 126, 162)
HSLhsl(233, 18%, 55%)
HSVhsv(233, 25%, 64%)
CMYKcmyk(25.3%, 22.2%, 0%, 36.5%)
CIE-LABlab(53.59, 6.39, -19.82)
CIE-LCHlch(53.59, 20.82, 287.88°)
OKLaboklab(60.23% 0.0081 -0.0544)
OKLCHoklch(60.23% 0.055 278.4)
XYZxyz(21.8659, 21.5948, 37.1916)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797EA2 #A29D79
analogous
#7992A2 #797EA2 #8879A2
triadic
#797EA2 #A2797E #7EA279
tetradic
#797EA2 #A27992 #A29D79 #79A288
square
#797EA2 #A27992 #A29D79 #79A288
split-complementary
#797EA2 #A28879 #92A279
monochromatic
#42455F #5B6083 #797EA2 #9DA1BB #C1C4D4

Accessibility & contrast

On white

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

On black

5.32
#797EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797EA2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797EA2#FFFFFF#000000##000000
##797EA21.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7482A4
Deuteranopia (green-blind)
#727FA1
Tritanopia (blue-blind)
#6F848A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #797ea2;
/* rgb */ color: rgb(121, 126, 162);
/* oklch */ color: oklch(60.2% 0.055 278.4);
Tailwind
colors: {
  custom: {
    50: '#a0a3bd',
    500: '#797ea2',
    950: '#000000',
  },
}
SCSS
$custom: #797ea2;
$custom-light: #a0a3bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797ea2",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 232.683,
    "s": 18.062,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60228,
    "c": 0.05504,
    "h": 278.4
  },
  "luminance": 0.21595
}

Semantic roles & 50–950 ramp

primary
#797EA2
secondary
#C4C2B3
accent
#B16DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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