#797E52#797E52

#797E52 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.8% C 0.063 H 113.7°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797E52
RGBrgb(121, 126, 82)
HSLhsl(67, 21%, 41%)
HSVhsv(67, 35%, 49%)
CMYKcmyk(4%, 0%, 34.9%, 50.6%)
CIE-LABlab(51.38, -9.43, 23.37)
CIE-LCHlch(51.38, 25.21, 111.97°)
OKLaboklab(57.75% -0.0254 0.0579)
OKLCHoklch(57.75% 0.063 113.7)
XYZxyz(16.8691, 19.5960, 10.8748)
Luminance0.1960 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E52 #57527E
analogous
#7E6D52 #797E52 #637E52
triadic
#797E52 #52797E #7E5279
tetradic
#797E52 #527E6D #57527E #7E5263
square
#797E52 #527E6D #57527E #7E5263
split-complementary
#797E52 #52637E #6D527E
monochromatic
#323422 #55593A #797E52 #9AA06D #B4B892

Accessibility & contrast

On white

4.27
#797E52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#797E52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E52
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E52#FFFFFF#000000##000000
##797E521.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847A4F
Deuteranopia (green-blind)
#847B54
Tritanopia (blue-blind)
#7E7973
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e52;
/* rgb */ color: rgb(121, 126, 82);
/* oklch */ color: oklch(57.8% 0.063 113.7);
Tailwind
colors: {
  custom: {
    50: '#a0a383',
    500: '#797e52',
    950: '#000000',
  },
}
SCSS
$custom: #797e52;
$custom-light: #a0a383;
$custom-dark: #000000;
JSON
{
  "hex": "#797e52",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 82
  },
  "hsl": {
    "h": 66.818,
    "s": 21.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.57751,
    "c": 0.0632,
    "h": 113.7
  },
  "luminance": 0.19596
}

Semantic roles & 50–950 ramp

primary
#797E52
secondary
#8A86A5
accent
#6ABE74
background
#F9FAF8
surface
#F2F3EF
border
#CCCDCA
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797E52

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

Preview Lab → · Contrast checker → · Palette generator →

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