#797281#797281

#797281 is a mid, muted grey. Relative luminance 0.177; OKLCH L 56.3% C 0.024 H 306.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#797281
RGBrgb(121, 114, 129)
HSLhsl(268, 6%, 48%)
HSVhsv(268, 12%, 51%)
CMYKcmyk(6.2%, 11.6%, 0%, 49.4%)
CIE-LABlab(49.11, 5.76, -7.26)
CIE-LCHlch(49.11, 9.26, 308.42°)
OKLaboklab(56.35% 0.0145 -0.0195)
OKLCHoklch(56.35% 0.024 306.6)
XYZxyz(17.8642, 17.6846, 23.2370)
Luminance0.1769 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797281 #7A8172
analogous
#727281 #797281 #817281
triadic
#797281 #817972 #728179
tetradic
#797281 #817272 #7A8172 #728181
square
#797281 #817272 #7A8172 #728181
split-complementary
#797281 #818172 #728172
monochromatic
#3C3940 #5B5561 #797281 #98929E #B6B2BB

Accessibility & contrast

On white

4.63
#797281 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#797281 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797281
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797281#FFFFFF#000000##FFFFFF
##7972811.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#707482
Deuteranopia (green-blind)
#717580
Tritanopia (blue-blind)
#787477
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797281;
/* rgb */ color: rgb(121, 114, 129);
/* oklch */ color: oklch(56.3% 0.024 306.6);
Tailwind
colors: {
  custom: {
    50: '#9f9aa5',
    500: '#797281',
    950: '#000000',
  },
}
SCSS
$custom: #797281;
$custom-light: #9f9aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#797281",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 129
  },
  "hsl": {
    "h": 268,
    "s": 6.173,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56347,
    "c": 0.02424,
    "h": 306.6
  },
  "luminance": 0.17685
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797281

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

Preview Lab → · Contrast checker → · Palette generator →

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