#797A2A#797A2A

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

Color values

HEX#797A2A
RGBrgb(121, 122, 42)
HSLhsl(61, 49%, 32%)
HSVhsv(61, 66%, 48%)
CMYKcmyk(0.8%, 0%, 65.6%, 52.2%)
CIE-LABlab(49.68, -11.33, 42.15)
CIE-LCHlch(49.68, 43.65, 105.04°)
OKLaboklab(56.23% -0.0347 0.0956)
OKLCHoklch(56.23% 0.102 110)
XYZxyz(15.2631, 18.1516, 4.8896)
Luminance0.1815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2A #2B2A7A
analogous
#7A532A #797A2A #517A2A
triadic
#797A2A #2A797A #7A2A79
tetradic
#797A2A #2A7A53 #2B2A7A #7A2A51
square
#797A2A #2A7A53 #2B2A7A #7A2A51
split-complementary
#797A2A #2A517A #532A7A
monochromatic
#1F1F0B #4C4C1A #797A2A #A6A83A #C4C659

Accessibility & contrast

On white

4.54
#797A2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A2A#FFFFFF#000000##000000
##797A2A1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847520
Deuteranopia (green-blind)
#84772F
Tritanopia (blue-blind)
#817269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a2a;
/* rgb */ color: rgb(121, 122, 42);
/* oklch */ color: oklch(56.2% 0.102 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a068',
    500: '#797a2a',
    950: '#000000',
  },
}
SCSS
$custom: #797a2a;
$custom-light: #a2a068;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2a",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 42
  },
  "hsl": {
    "h": 60.75,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5623,
    "c": 0.10172,
    "h": 110
  },
  "luminance": 0.18151
}

Semantic roles & 50–950 ramp

primary
#797A2A
secondary
#5655AB
accent
#4FD851
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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