#797381#797381

#797381 is a mid, muted grey. Relative luminance 0.179; OKLCH L 56.6% C 0.022 H 305.0°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#797381
RGBrgb(121, 115, 129)
HSLhsl(266, 6%, 48%)
HSVhsv(266, 11%, 51%)
CMYKcmyk(6.2%, 10.9%, 0%, 49.4%)
CIE-LABlab(49.39, 5.17, -6.84)
CIE-LCHlch(49.39, 8.58, 307.04°)
OKLaboklab(56.56% 0.0129 -0.0183)
OKLCHoklch(56.56% 0.022 305)
XYZxyz(17.9776, 17.9114, 23.2748)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797381 #7B8173
analogous
#737481 #797381 #807381
triadic
#797381 #817973 #738179
tetradic
#797381 #817374 #7B8173 #738180
square
#797381 #817374 #7B8173 #738180
split-complementary
#797381 #818073 #748173
monochromatic
#3C3940 #5B5661 #797381 #98939E #B7B3BB

Accessibility & contrast

On white

4.58
#797381 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#797381 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797381
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797381#FFFFFF#000000##000000
##7973811.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#717582
Deuteranopia (green-blind)
#727581
Tritanopia (blue-blind)
#787578
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797381;
/* rgb */ color: rgb(121, 115, 129);
/* oklch */ color: oklch(56.6% 0.022 305.0);
Tailwind
colors: {
  custom: {
    50: '#9f9ba5',
    500: '#797381',
    950: '#000000',
  },
}
SCSS
$custom: #797381;
$custom-light: #9f9ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#797381",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 129
  },
  "hsl": {
    "h": 265.714,
    "s": 5.738,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56563,
    "c": 0.02239,
    "h": 305
  },
  "luminance": 0.17911
}

Semantic roles & 50–950 ramp

primary
#797381
secondary
#A8ABA4
accent
#AF7998
background
#F9F9FA
surface
#F2F2F4
border
#CCCCCE
text
#0E0E0F
muted
#7E7E7F

Preview Lab

Preview with #797381

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

Preview Lab → · Contrast checker → · Palette generator →

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