#797A2C#797A2C

#797A2C is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.2% C 0.100 H 109.9°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#797A2C
RGBrgb(121, 122, 44)
HSLhsl(61, 47%, 33%)
HSVhsv(61, 64%, 48%)
CMYKcmyk(0.8%, 0%, 63.9%, 52.2%)
CIE-LABlab(49.70, -11.19, 41.26)
CIE-LCHlch(49.70, 42.75, 105.17°)
OKLaboklab(56.25% -0.0341 0.0941)
OKLCHoklch(56.25% 0.1 109.9)
XYZxyz(15.2998, 18.1663, 5.0829)
Luminance0.1817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2C #2D2C7A
analogous
#7A542C #797A2C #527A2C
triadic
#797A2C #2C797A #7A2C79
tetradic
#797A2C #2C7A54 #2D2C7A #7A2C52
square
#797A2C #2C7A54 #2D2C7A #7A2C52
split-complementary
#797A2C #2C527A #542C7A
monochromatic
#20200C #4C4D1C #797A2C #A6A73C #C3C45C

Accessibility & contrast

On white

4.53
#797A2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#797A2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A2C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A2C#FFFFFF#000000##000000
##797A2C1.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#837522
Deuteranopia (green-blind)
#847731
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a2c;
/* rgb */ color: rgb(121, 122, 44);
/* oklch */ color: oklch(56.2% 0.100 109.9);
Tailwind
colors: {
  custom: {
    50: '#a2a069',
    500: '#797a2c',
    950: '#000000',
  },
}
SCSS
$custom: #797a2c;
$custom-light: #a2a069;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2c",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 44
  },
  "hsl": {
    "h": 60.769,
    "s": 46.988,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56249,
    "c": 0.10003,
    "h": 109.9
  },
  "luminance": 0.18166
}

Semantic roles & 50–950 ramp

primary
#797A2C
secondary
#5857AA
accent
#51D753
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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