#797A2D#797A2D

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

Color values

HEX#797A2D
RGBrgb(121, 122, 45)
HSLhsl(61, 46%, 33%)
HSVhsv(61, 63%, 48%)
CMYKcmyk(0.8%, 0%, 63.1%, 52.2%)
CIE-LABlab(49.71, -11.11, 40.80)
CIE-LCHlch(49.71, 42.29, 105.24°)
OKLaboklab(56.26% -0.0338 0.0932)
OKLCHoklch(56.26% 0.099 109.9)
XYZxyz(15.3188, 18.1739, 5.1831)
Luminance0.1817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2D #2E2D7A
analogous
#7A542D #797A2D #537A2D
triadic
#797A2D #2D797A #7A2D79
tetradic
#797A2D #2D7A54 #2E2D7A #7A2D53
square
#797A2D #2D7A54 #2E2D7A #7A2D53
split-complementary
#797A2D #2D537A #542D7A
monochromatic
#20210C #4D4D1D #797A2D #A5A73D #C2C45E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A2D#FFFFFF#000000##000000
##797A2D1.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)
#837524
Deuteranopia (green-blind)
#847732
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a2d;
/* rgb */ color: rgb(121, 122, 45);
/* oklch */ color: oklch(56.3% 0.099 109.9);
Tailwind
colors: {
  custom: {
    50: '#a2a06a',
    500: '#797a2d',
    950: '#000000',
  },
}
SCSS
$custom: #797a2d;
$custom-light: #a2a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2d",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 60.779,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.5626,
    "c": 0.09916,
    "h": 109.9
  },
  "luminance": 0.18173
}

Semantic roles & 50–950 ramp

primary
#797A2D
secondary
#5A59AA
accent
#52D654
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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