#797C3E#797C3E

#797C3E is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.085 H 111.3°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797C3E
RGBrgb(121, 124, 62)
HSLhsl(63, 33%, 36%)
HSVhsv(63, 50%, 49%)
CMYKcmyk(2.4%, 0%, 50%, 51.4%)
CIE-LABlab(50.49, -10.71, 33.20)
CIE-LCHlch(50.49, 34.88, 107.89°)
OKLaboklab(56.94% -0.0307 0.0789)
OKLCHoklch(56.94% 0.085 111.3)
XYZxyz(15.9626, 18.8284, 7.3498)
Luminance0.1883 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C3E #413E7C
analogous
#7C603E #797C3E #5A7C3E
triadic
#797C3E #3E797C #7C3E79
tetradic
#797C3E #3E7C60 #413E7C #7C3E5A
square
#797C3E #3E7C60 #413E7C #7C3E5A
split-complementary
#797C3E #3E5A7C #603E7C
monochromatic
#292A15 #51532A #797C3E #A1A552 #B9BC79

Accessibility & contrast

On white

4.41
#797C3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797C3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C3E
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C3E#FFFFFF#000000##000000
##797C3E1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#847739
Deuteranopia (green-blind)
#857941
Tritanopia (blue-blind)
#80766E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c3e;
/* rgb */ color: rgb(121, 124, 62);
/* oklch */ color: oklch(56.9% 0.085 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a175',
    500: '#797c3e',
    950: '#000000',
  },
}
SCSS
$custom: #797c3e;
$custom-light: #a1a175;
$custom-dark: #000000;
JSON
{
  "hex": "#797c3e",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 62
  },
  "hsl": {
    "h": 62.903,
    "s": 33.333,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56942,
    "c": 0.08465,
    "h": 111.3
  },
  "luminance": 0.18828
}

Semantic roles & 50–950 ramp

primary
#797C3E
secondary
#7270A6
accent
#5EC964
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #797C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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