#797181#797181

#797181 is a mid, muted grey. Relative luminance 0.175; OKLCH L 56.1% C 0.026 H 308.0°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797181
RGBrgb(121, 113, 129)
HSLhsl(270, 7%, 47%)
HSVhsv(270, 12%, 51%)
CMYKcmyk(6.2%, 12.4%, 0%, 49.4%)
CIE-LABlab(48.83, 6.35, -7.67)
CIE-LCHlch(48.83, 9.96, 309.61°)
OKLaboklab(56.13% 0.016 -0.0206)
OKLCHoklch(56.13% 0.026 308)
XYZxyz(17.7520, 17.4602, 23.1996)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797181 #798171
analogous
#717181 #797181 #817181
triadic
#797181 #817971 #718179
tetradic
#797181 #817171 #798171 #718181
square
#797181 #817171 #798171 #718181
split-complementary
#797181 #818171 #718171
monochromatic
#3C3840 #5A5460 #797181 #98919E #B6B1BB

Accessibility & contrast

On white

4.67
#797181 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#797181 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797181
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797181#FFFFFF#000000##FFFFFF
##7971811.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F7482
Deuteranopia (green-blind)
#707480
Tritanopia (blue-blind)
#787376
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797181;
/* rgb */ color: rgb(121, 113, 129);
/* oklch */ color: oklch(56.1% 0.026 308.0);
Tailwind
colors: {
  custom: {
    50: '#9f99a5',
    500: '#797181',
    950: '#000000',
  },
}
SCSS
$custom: #797181;
$custom-light: #9f99a5;
$custom-dark: #000000;
JSON
{
  "hex": "#797181",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 129
  },
  "hsl": {
    "h": 270,
    "s": 6.612,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56132,
    "c": 0.0261,
    "h": 308
  },
  "luminance": 0.1746
}

Semantic roles & 50–950 ramp

primary
#797181
secondary
#A7ABA3
accent
#B07894
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E0F
muted
#7E7E7F

Preview Lab

Preview with #797181

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

Preview Lab → · Contrast checker → · Palette generator →

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