#797FA6#797FA6

#797FA6 is a mid, muted blue. Relative luminance 0.220; OKLCH L 60.6% C 0.060 H 277.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#797FA6
RGBrgb(121, 127, 166)
HSLhsl(232, 20%, 56%)
HSVhsv(232, 27%, 65%)
CMYKcmyk(27.1%, 23.5%, 0%, 34.9%)
CIE-LABlab(54.02, 6.82, -21.47)
CIE-LCHlch(54.02, 22.53, 287.61°)
OKLaboklab(60.61% 0.008 -0.0591)
OKLCHoklch(60.61% 0.06 277.7)
XYZxyz(22.3557, 21.9963, 39.1369)
Luminance0.2200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA6 #A6A079
analogous
#7996A6 #797FA6 #8A79A6
triadic
#797FA6 #A6797F #7FA679
tetradic
#797FA6 #A67996 #A6A079 #79A68A
square
#797FA6 #A67996 #A6A079 #79A68A
split-complementary
#797FA6 #A68A79 #96A679
monochromatic
#424663 #5A6088 #797FA6 #9EA2BE #C3C5D7

Accessibility & contrast

On white

3.89
#797FA6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#797FA6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA6
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA6#FFFFFF#000000##000000
##797FA61.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7483A8
Deuteranopia (green-blind)
#7180A5
Tritanopia (blue-blind)
#6E868C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa6;
/* rgb */ color: rgb(121, 127, 166);
/* oklch */ color: oklch(60.6% 0.060 277.7);
Tailwind
colors: {
  custom: {
    50: '#a0a4c0',
    500: '#797fa6',
    950: '#000000',
  },
}
SCSS
$custom: #797fa6;
$custom-light: #a0a4c0;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa6",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 166
  },
  "hsl": {
    "h": 232,
    "s": 20.179,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60613,
    "c": 0.05966,
    "h": 277.7
  },
  "luminance": 0.21997
}

Semantic roles & 50–950 ramp

primary
#797FA6
secondary
#C7C4B4
accent
#B26BBD
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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