#797E41#797E41

#797E41 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.084 H 112.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797E41
RGBrgb(121, 126, 65)
HSLhsl(65, 32%, 37%)
HSVhsv(65, 48%, 49%)
CMYKcmyk(4%, 0%, 48.4%, 50.6%)
CIE-LABlab(51.12, -11.50, 32.37)
CIE-LCHlch(51.12, 34.35, 109.55°)
OKLaboklab(57.46% -0.0326 0.0773)
OKLCHoklch(57.46% 0.084 112.9)
XYZxyz(16.3004, 19.3686, 7.8798)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E41 #46417E
analogous
#7E6441 #797E41 #5B7E41
triadic
#797E41 #41797E #7E4179
tetradic
#797E41 #417E64 #46417E #7E415B
square
#797E41 #417E64 #46417E #7E415B
split-complementary
#797E41 #415B7E #64417E
monochromatic
#2B2D17 #52562C #797E41 #A0A656 #B7BC7D

Accessibility & contrast

On white

4.31
#797E41 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797E41 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E41
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E41#FFFFFF#000000##000000
##797E411.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793C
Deuteranopia (green-blind)
#867B44
Tritanopia (blue-blind)
#807870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e41;
/* rgb */ color: rgb(121, 126, 65);
/* oklch */ color: oklch(57.5% 0.084 112.9);
Tailwind
colors: {
  custom: {
    50: '#a1a377',
    500: '#797e41',
    950: '#000000',
  },
}
SCSS
$custom: #797e41;
$custom-light: #a1a377;
$custom-dark: #000000;
JSON
{
  "hex": "#797e41",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 65
  },
  "hsl": {
    "h": 64.918,
    "s": 31.937,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57458,
    "c": 0.08393,
    "h": 112.9
  },
  "luminance": 0.19368
}

Semantic roles & 50–950 ramp

primary
#797E41
secondary
#7874A7
accent
#60C868
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797E41

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

Preview Lab → · Contrast checker → · Palette generator →

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