#797A2E#797A2E

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

Color values

HEX#797A2E
RGBrgb(121, 122, 46)
HSLhsl(61, 45%, 33%)
HSVhsv(61, 62%, 48%)
CMYKcmyk(0.8%, 0%, 62.3%, 52.2%)
CIE-LABlab(49.72, -11.04, 40.34)
CIE-LCHlch(49.72, 41.83, 105.30°)
OKLaboklab(56.27% -0.0334 0.0924)
OKLCHoklch(56.27% 0.098 109.9)
XYZxyz(15.3383, 18.1817, 5.2857)
Luminance0.1818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2E #2F2E7A
analogous
#7A552E #797A2E #537A2E
triadic
#797A2E #2E797A #7A2E79
tetradic
#797A2E #2E7A55 #2F2E7A #7A2E53
square
#797A2E #2E7A55 #2F2E7A #7A2E53
split-complementary
#797A2E #2E537A #552E7A
monochromatic
#21210C #4D4E1D #797A2E #A5A63F #C2C360

Accessibility & contrast

On white

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

On black

4.64
#797A2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A2E
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A2E#FFFFFF#000000##000000
##797A2E1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797a2e;
/* rgb */ color: rgb(121, 122, 46);
/* oklch */ color: oklch(56.3% 0.098 109.9);
Tailwind
colors: {
  custom: {
    50: '#a2a06a',
    500: '#797a2e',
    950: '#000000',
  },
}
SCSS
$custom: #797a2e;
$custom-light: #a2a06a;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2e",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 46
  },
  "hsl": {
    "h": 60.789,
    "s": 45.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5627,
    "c": 0.09827,
    "h": 109.9
  },
  "luminance": 0.18181
}

Semantic roles & 50–950 ramp

primary
#797A2E
secondary
#5B5AAA
accent
#53D555
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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