#797A42#797A42

#797A42 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.078 H 109.5°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#797A42
RGBrgb(121, 122, 66)
HSLhsl(61, 30%, 37%)
HSVhsv(61, 46%, 48%)
CMYKcmyk(0.8%, 0%, 45.9%, 52.2%)
CIE-LABlab(49.95, -9.19, 30.41)
CIE-LCHlch(49.95, 31.77, 106.81°)
OKLaboklab(56.53% -0.0259 0.0731)
OKLCHoklch(56.53% 0.078 109.5)
XYZxyz(15.8283, 18.3777, 7.8666)
Luminance0.1838 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A42 #43427A
analogous
#7A5F42 #797A42 #5D7A42
triadic
#797A42 #42797A #7A4279
tetradic
#797A42 #427A5F #43427A #7A425D
square
#797A42 #427A5F #43427A #7A425D
split-complementary
#797A42 #425D7A #5F427A
monochromatic
#2A2B17 #52522D #797A42 #A0A257 #B8B97D

Accessibility & contrast

On white

4.49
#797A42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797A42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A42
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A42#FFFFFF#000000##000000
##797A421.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#82763D
Deuteranopia (green-blind)
#837845
Tritanopia (blue-blind)
#80746D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797a42;
/* rgb */ color: rgb(121, 122, 66);
/* oklch */ color: oklch(56.5% 0.078 109.5);
Tailwind
colors: {
  custom: {
    50: '#a1a077',
    500: '#797a42',
    950: '#000000',
  },
}
SCSS
$custom: #797a42;
$custom-light: #a1a077;
$custom-dark: #000000;
JSON
{
  "hex": "#797a42",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 61.071,
    "s": 29.787,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56534,
    "c": 0.07752,
    "h": 109.5
  },
  "luminance": 0.18377
}

Semantic roles & 50–950 ramp

primary
#797A42
secondary
#7574A4
accent
#62C664
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797A42

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

Preview Lab → · Contrast checker → · Palette generator →

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