#797FA1#797FA1

#797FA1 is a mid, muted blue. Relative luminance 0.218; OKLCH L 60.4% C 0.052 H 276.9°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#797FA1
RGBrgb(121, 127, 161)
HSLhsl(231, 18%, 55%)
HSVhsv(231, 25%, 63%)
CMYKcmyk(24.8%, 21.1%, 0%, 36.9%)
CIE-LABlab(53.83, 5.56, -18.87)
CIE-LCHlch(53.83, 19.68, 286.41°)
OKLaboklab(60.4% 0.0063 -0.0518)
OKLCHoklch(60.4% 0.052 276.9)
XYZxyz(21.9059, 21.8164, 36.7681)
Luminance0.2182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA1 #A19B79
analogous
#7993A1 #797FA1 #8779A1
triadic
#797FA1 #A1797F #7FA179
tetradic
#797FA1 #A17993 #A19B79 #79A187
square
#797FA1 #A17993 #A19B79 #79A187
split-complementary
#797FA1 #A18779 #93A179
monochromatic
#42465E #5B6182 #797FA1 #9DA1BA #C1C4D3

Accessibility & contrast

On white

3.92
#797FA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#797FA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA1
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA1#FFFFFF#000000##000000
##797FA11.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7582A3
Deuteranopia (green-blind)
#737FA0
Tritanopia (blue-blind)
#6F858A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa1;
/* rgb */ color: rgb(121, 127, 161);
/* oklch */ color: oklch(60.4% 0.052 276.9);
Tailwind
colors: {
  custom: {
    50: '#a0a4bd',
    500: '#797fa1',
    950: '#000000',
  },
}
SCSS
$custom: #797fa1;
$custom-light: #a0a4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa1",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 161
  },
  "hsl": {
    "h": 231,
    "s": 17.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.604,
    "c": 0.05217,
    "h": 276.9
  },
  "luminance": 0.21817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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