#797F41#797F41

#797F41 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.085 H 113.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#797F41
RGBrgb(121, 127, 65)
HSLhsl(66, 32%, 38%)
HSVhsv(66, 49%, 50%)
CMYKcmyk(4.7%, 0%, 48.8%, 50.2%)
CIE-LABlab(51.41, -12.04, 32.73)
CIE-LCHlch(51.41, 34.88, 110.20°)
OKLaboklab(57.69% -0.0342 0.0781)
OKLCHoklch(57.69% 0.085 113.6)
XYZxyz(16.4289, 19.6256, 7.9227)
Luminance0.1963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F41 #47417F
analogous
#7F6641 #797F41 #5A7F41
triadic
#797F41 #41797F #7F4179
tetradic
#797F41 #417F66 #47417F #7F415A
square
#797F41 #417F66 #47417F #7F415A
split-complementary
#797F41 #415A7F #66417F
monochromatic
#2C2E18 #52572C #797F41 #A0A756 #B7BD7E

Accessibility & contrast

On white

4.26
#797F41 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#797F41 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F41
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F41#FFFFFF#000000##000000
##797F411.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3C
Deuteranopia (green-blind)
#877B44
Tritanopia (blue-blind)
#807971
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f41;
/* rgb */ color: rgb(121, 127, 65);
/* oklch */ color: oklch(57.7% 0.085 113.6);
Tailwind
colors: {
  custom: {
    50: '#a1a477',
    500: '#797f41',
    950: '#000000',
  },
}
SCSS
$custom: #797f41;
$custom-light: #a1a477;
$custom-dark: #000000;
JSON
{
  "hex": "#797f41",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 65
  },
  "hsl": {
    "h": 65.806,
    "s": 32.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57693,
    "c": 0.08527,
    "h": 113.6
  },
  "luminance": 0.19625
}

Semantic roles & 50–950 ramp

primary
#797F41
secondary
#7974A7
accent
#5FC86A
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797F41

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

Preview Lab → · Contrast checker → · Palette generator →

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