#797C42#797C42

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

Color values

HEX#797C42
RGBrgb(121, 124, 66)
HSLhsl(63, 31%, 37%)
HSVhsv(63, 47%, 49%)
CMYKcmyk(2.4%, 0%, 46.8%, 51.4%)
CIE-LABlab(50.54, -10.29, 31.13)
CIE-LCHlch(50.54, 32.79, 108.29°)
OKLaboklab(57% -0.0291 0.0747)
OKLCHoklch(57% 0.08 111.3)
XYZxyz(16.0764, 18.8739, 7.9493)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C42 #45427C
analogous
#7C6242 #797C42 #5C7C42
triadic
#797C42 #42797C #7C4279
tetradic
#797C42 #427C62 #45427C #7C425C
square
#797C42 #427C62 #45427C #7C425C
split-complementary
#797C42 #425C7C #62427C
monochromatic
#2B2C17 #52542D #797C42 #A0A457 #B7BA7E

Accessibility & contrast

On white

4.40
#797C42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C42#FFFFFF#000000##000000
##797C421.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#84773D
Deuteranopia (green-blind)
#847945
Tritanopia (blue-blind)
#80766E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c42;
/* rgb */ color: rgb(121, 124, 66);
/* oklch */ color: oklch(57.0% 0.080 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a178',
    500: '#797c42',
    950: '#000000',
  },
}
SCSS
$custom: #797c42;
$custom-light: #a1a178;
$custom-dark: #000000;
JSON
{
  "hex": "#797c42",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 66
  },
  "hsl": {
    "h": 63.103,
    "s": 30.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57002,
    "c": 0.08012,
    "h": 111.3
  },
  "luminance": 0.18874
}

Semantic roles & 50–950 ramp

primary
#797C42
secondary
#7775A5
accent
#61C766
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F09
muted
#7F7E7B

Preview Lab

Preview with #797C42

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

Preview Lab → · Contrast checker → · Palette generator →

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