#797FA7#797FA7

#797FA7 is a mid, moderate blue. Relative luminance 0.220; OKLCH L 60.7% C 0.061 H 277.8°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#797FA7
RGBrgb(121, 127, 167)
HSLhsl(232, 21%, 56%)
HSVhsv(232, 28%, 65%)
CMYKcmyk(27.5%, 24%, 0%, 34.5%)
CIE-LABlab(54.06, 7.07, -21.99)
CIE-LCHlch(54.06, 23.10, 287.83°)
OKLaboklab(60.66% 0.0083 -0.0606)
OKLCHoklch(60.66% 0.061 277.8)
XYZxyz(22.4477, 22.0331, 39.6218)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA7 #A7A179
analogous
#7996A7 #797FA7 #8A79A7
triadic
#797FA7 #A7797F #7FA779
tetradic
#797FA7 #A77996 #A7A179 #79A78A
square
#797FA7 #A77996 #A7A179 #79A78A
split-complementary
#797FA7 #A78A79 #96A779
monochromatic
#424664 #5A6089 #797FA7 #9EA2BF #C3C6D8

Accessibility & contrast

On white

3.88
#797FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#797FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA7
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA7#FFFFFF#000000##000000
##797FA71.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7483A9
Deuteranopia (green-blind)
#7180A6
Tritanopia (blue-blind)
#6E868D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa7;
/* rgb */ color: rgb(121, 127, 167);
/* oklch */ color: oklch(60.7% 0.061 277.8);
Tailwind
colors: {
  custom: {
    50: '#a0a4c1',
    500: '#797fa7',
    950: '#000000',
  },
}
SCSS
$custom: #797fa7;
$custom-light: #a0a4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa7",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 167
  },
  "hsl": {
    "h": 232.174,
    "s": 20.721,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60656,
    "c": 0.06115,
    "h": 277.8
  },
  "luminance": 0.22034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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