#797E36#797E36

#797E36 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.096 H 112.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#797E36
RGBrgb(121, 126, 54)
HSLhsl(64, 40%, 35%)
HSVhsv(64, 57%, 49%)
CMYKcmyk(4%, 0%, 57.1%, 50.6%)
CIE-LABlab(50.98, -12.57, 37.88)
CIE-LCHlch(50.98, 39.91, 108.36°)
OKLaboklab(57.31% -0.0368 0.0882)
OKLCHoklch(57.31% 0.096 112.7)
XYZxyz(16.0122, 19.2533, 6.3621)
Luminance0.1925 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E36 #3B367E
analogous
#7E5F36 #797E36 #557E36
triadic
#797E36 #36797E #7E3679
tetradic
#797E36 #367E5F #3B367E #7E3655
square
#797E36 #367E5F #3B367E #7E3655
split-complementary
#797E36 #36557E #5F367E
monochromatic
#272811 #505324 #797E36 #A2A948 #BBC16E

Accessibility & contrast

On white

4.33
#797E36 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#797E36 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E36
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E36#FFFFFF#000000##000000
##797E361.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#87792F
Deuteranopia (green-blind)
#877A3A
Tritanopia (blue-blind)
#80776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e36;
/* rgb */ color: rgb(121, 126, 54);
/* oklch */ color: oklch(57.3% 0.096 112.7);
Tailwind
colors: {
  custom: {
    50: '#a1a370',
    500: '#797e36',
    950: '#000000',
  },
}
SCSS
$custom: #797e36;
$custom-light: #a1a370;
$custom-dark: #000000;
JSON
{
  "hex": "#797e36",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 54
  },
  "hsl": {
    "h": 64.167,
    "s": 40,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57308,
    "c": 0.09559,
    "h": 112.7
  },
  "luminance": 0.19253
}

Semantic roles & 50–950 ramp

primary
#797E36
secondary
#6B67A9
accent
#58D060
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E36

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

Preview Lab → · Contrast checker → · Palette generator →

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