#797F52#797F52

#797F52 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.0% C 0.065 H 114.6°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#797F52
RGBrgb(121, 127, 82)
HSLhsl(68, 22%, 41%)
HSVhsv(68, 35%, 50%)
CMYKcmyk(4.7%, 0%, 35.4%, 50.2%)
CIE-LABlab(51.67, -9.98, 23.76)
CIE-LCHlch(51.67, 25.77, 112.79°)
OKLaboklab(57.99% -0.0269 0.0588)
OKLCHoklch(57.99% 0.065 114.6)
XYZxyz(16.9976, 19.8531, 10.9176)
Luminance0.1985 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F52 #58527F
analogous
#7F6E52 #797F52 #627F52
triadic
#797F52 #52797F #7F5279
tetradic
#797F52 #527F6E #58527F #7F5262
square
#797F52 #527F6E #58527F #7F5262
split-complementary
#797F52 #52627F #6E527F
monochromatic
#323522 #565A3A #797F52 #9AA16D #B4B992

Accessibility & contrast

On white

4.22
#797F52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#797F52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F52
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F52#FFFFFF#000000##000000
##797F521.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#857B4F
Deuteranopia (green-blind)
#857C54
Tritanopia (blue-blind)
#7E7A74
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797f52;
/* rgb */ color: rgb(121, 127, 82);
/* oklch */ color: oklch(58.0% 0.065 114.6);
Tailwind
colors: {
  custom: {
    50: '#a0a483',
    500: '#797f52',
    950: '#000000',
  },
}
SCSS
$custom: #797f52;
$custom-light: #a0a483;
$custom-dark: #000000;
JSON
{
  "hex": "#797f52",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 82
  },
  "hsl": {
    "h": 68,
    "s": 21.531,
    "l": 40.98
  },
  "oklch": {
    "l": 0.57985,
    "c": 0.06465,
    "h": 114.6
  },
  "luminance": 0.19853
}

Semantic roles & 50–950 ramp

primary
#797F52
secondary
#8B87A6
accent
#6ABE75
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797F52

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

Preview Lab → · Contrast checker → · Palette generator →

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