#797E34#797E34

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

Color values

HEX#797E34
RGBrgb(121, 126, 52)
HSLhsl(64, 42%, 35%)
HSVhsv(64, 59%, 49%)
CMYKcmyk(4%, 0%, 58.7%, 50.6%)
CIE-LABlab(50.96, -12.74, 38.84)
CIE-LCHlch(50.96, 40.88, 108.16°)
OKLaboklab(57.28% -0.0375 0.09)
OKLCHoklch(57.28% 0.098 112.6)
XYZxyz(15.9662, 19.2349, 6.1198)
Luminance0.1923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E34 #39347E
analogous
#7E5E34 #797E34 #547E34
triadic
#797E34 #34797E #7E3479
tetradic
#797E34 #347E5E #39347E #7E3454
square
#797E34 #347E5E #39347E #7E3454
split-complementary
#797E34 #34547E #5E347E
monochromatic
#262710 #4F5322 #797E34 #A3A946 #BCC26B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E34#FFFFFF#000000##000000
##797E341.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)
#87782C
Deuteranopia (green-blind)
#877A38
Tritanopia (blue-blind)
#81776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e34;
/* rgb */ color: rgb(121, 126, 52);
/* oklch */ color: oklch(57.3% 0.098 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36e',
    500: '#797e34',
    950: '#000000',
  },
}
SCSS
$custom: #797e34;
$custom-light: #a2a36e;
$custom-dark: #000000;
JSON
{
  "hex": "#797e34",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 52
  },
  "hsl": {
    "h": 64.054,
    "s": 41.573,
    "l": 34.902
  },
  "oklch": {
    "l": 0.57284,
    "c": 0.09755,
    "h": 112.6
  },
  "luminance": 0.19235
}

Semantic roles & 50–950 ramp

primary
#797E34
secondary
#6964AA
accent
#56D15F
background
#FAFAF6
surface
#F4F3EC
border
#CECDC7
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E34

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

Preview Lab → · Contrast checker → · Palette generator →

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