#797FA3#797FA3

#797FA3 is a mid, muted blue. Relative luminance 0.219; OKLCH L 60.5% C 0.055 H 277.2°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#797FA3
RGBrgb(121, 127, 163)
HSLhsl(231, 19%, 56%)
HSVhsv(231, 26%, 64%)
CMYKcmyk(25.8%, 22.1%, 0%, 36.1%)
CIE-LABlab(53.91, 6.06, -19.92)
CIE-LCHlch(53.91, 20.82, 286.92°)
OKLaboklab(60.48% 0.007 -0.0547)
OKLCHoklch(60.48% 0.055 277.2)
XYZxyz(22.0837, 21.8875, 37.7044)
Luminance0.2189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA3 #A39D79
analogous
#7994A3 #797FA3 #8879A3
triadic
#797FA3 #A3797F #7FA379
tetradic
#797FA3 #A37994 #A39D79 #79A388
square
#797FA3 #A37994 #A39D79 #79A388
split-complementary
#797FA3 #A38879 #94A379
monochromatic
#424660 #5B6184 #797FA3 #9DA2BC #C2C4D5

Accessibility & contrast

On white

3.91
#797FA3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#797FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA3
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA3#FFFFFF#000000##000000
##797FA31.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7583A5
Deuteranopia (green-blind)
#727FA2
Tritanopia (blue-blind)
#6F868B
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa3;
/* rgb */ color: rgb(121, 127, 163);
/* oklch */ color: oklch(60.5% 0.055 277.2);
Tailwind
colors: {
  custom: {
    50: '#a0a4be',
    500: '#797fa3',
    950: '#000000',
  },
}
SCSS
$custom: #797fa3;
$custom-light: #a0a4be;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa3",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 163
  },
  "hsl": {
    "h": 231.429,
    "s": 18.584,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60484,
    "c": 0.05516,
    "h": 277.2
  },
  "luminance": 0.21888
}

Semantic roles & 50–950 ramp

primary
#797FA3
secondary
#C5C2B3
accent
#B06DBB
background
#F9FAFB
surface
#F2F3F6
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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