#798271#798271

#798271 is a mid, muted grey. Relative luminance 0.212; OKLCH L 59.4% C 0.027 H 130.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#798271
RGBrgb(121, 130, 113)
HSLhsl(92, 7%, 48%)
HSVhsv(92, 13%, 51%)
CMYKcmyk(6.9%, 0%, 13.1%, 49%)
CIE-LABlab(53.19, -6.67, 8.08)
CIE-LCHlch(53.19, 10.48, 129.54°)
OKLaboklab(59.41% -0.0176 0.021)
OKLCHoklch(59.41% 0.027 130.1)
XYZxyz(18.8479, 21.2224, 18.7229)
Luminance0.2122 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798271 #7A7182
analogous
#818271 #798271 #718271
triadic
#798271 #717982 #827179
tetradic
#798271 #718182 #7A7182 #827171
square
#798271 #718182 #7A7182 #827171
split-complementary
#798271 #717182 #827181
monochromatic
#3C4138 #5B6155 #798271 #989F91 #B6BCB2

Accessibility & contrast

On white

4.00
#798271 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#798271 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798271
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798271#FFFFFF#000000##000000
##7982711.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#847F70
Deuteranopia (green-blind)
#827F72
Tritanopia (blue-blind)
#7A807D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #798271;
/* rgb */ color: rgb(121, 130, 113);
/* oklch */ color: oklch(59.4% 0.027 130.1);
Tailwind
colors: {
  custom: {
    50: '#9fa699',
    500: '#798271',
    950: '#000000',
  },
}
SCSS
$custom: #798271;
$custom-light: #9fa699;
$custom-dark: #000000;
JSON
{
  "hex": "#798271",
  "rgb": {
    "r": 121,
    "g": 130,
    "b": 113
  },
  "hsl": {
    "h": 91.765,
    "s": 6.996,
    "l": 47.647
  },
  "oklch": {
    "l": 0.59406,
    "c": 0.0274,
    "h": 130.1
  },
  "luminance": 0.21222
}

Semantic roles & 50–950 ramp

primary
#798271
secondary
#A8A3AC
accent
#78B096
background
#F9FAF9
surface
#F2F4F2
border
#CCCECC
text
#0E0F0E
muted
#7E7F7E

Preview Lab

Preview with #798271

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

Preview Lab → · Contrast checker → · Palette generator →

#798271 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva