#797E48#797E48

#797E48 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.076 H 113.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797E48
RGBrgb(121, 126, 72)
HSLhsl(66, 27%, 39%)
HSVhsv(66, 43%, 49%)
CMYKcmyk(4%, 0%, 42.9%, 50.6%)
CIE-LABlab(51.22, -10.71, 28.72)
CIE-LCHlch(51.22, 30.65, 110.45°)
OKLaboklab(57.57% -0.0297 0.0697)
OKLCHoklch(57.57% 0.076 113.1)
XYZxyz(16.5159, 19.4548, 9.0147)
Luminance0.1946 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E48 #4D487E
analogous
#7E6848 #797E48 #5E7E48
triadic
#797E48 #48797E #7E4879
tetradic
#797E48 #487E68 #4D487E #7E485E
square
#797E48 #487E68 #4D487E #7E485E
split-complementary
#797E48 #485E7E #68487E
monochromatic
#2E301B #545732 #797E48 #9DA45F #B5BA86

Accessibility & contrast

On white

4.29
#797E48 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#797E48 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E48
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E48#FFFFFF#000000##000000
##797E481.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857944
Deuteranopia (green-blind)
#857B4B
Tritanopia (blue-blind)
#7F7871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e48;
/* rgb */ color: rgb(121, 126, 72);
/* oklch */ color: oklch(57.6% 0.076 113.1);
Tailwind
colors: {
  custom: {
    50: '#a1a37c',
    500: '#797e48',
    950: '#000000',
  },
}
SCSS
$custom: #797e48;
$custom-light: #a1a37c;
$custom-dark: #000000;
JSON
{
  "hex": "#797e48",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 72
  },
  "hsl": {
    "h": 65.556,
    "s": 27.273,
    "l": 38.824
  },
  "oklch": {
    "l": 0.57569,
    "c": 0.07574,
    "h": 113.1
  },
  "luminance": 0.19455
}

Semantic roles & 50–950 ramp

primary
#797E48
secondary
#807CA6
accent
#64C46D
background
#FAFAF7
surface
#F3F3EE
border
#CDCDC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797E48

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

Preview Lab → · Contrast checker → · Palette generator →

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