#797D2A#797D2A

#797D2A is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.105 H 111.9°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#797D2A
RGBrgb(121, 125, 42)
HSLhsl(63, 50%, 33%)
HSVhsv(63, 66%, 49%)
CMYKcmyk(3.2%, 0%, 66.4%, 51%)
CIE-LABlab(50.57, -12.96, 43.09)
CIE-LCHlch(50.57, 45.00, 106.75°)
OKLaboklab(56.94% -0.0393 0.0976)
OKLCHoklch(56.94% 0.105 111.9)
XYZxyz(15.6371, 18.8997, 5.0143)
Luminance0.1890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2A #2E2A7D
analogous
#7D582A #797D2A #4F7D2A
triadic
#797D2A #2A797D #7D2A79
tetradic
#797D2A #2A7D58 #2E2A7D #7D2A4F
square
#797D2A #2A7D58 #2E2A7D #7D2A4F
split-complementary
#797D2A #2A4F7D #582A7D
monochromatic
#20210B #4D4F1B #797D2A #A5AB39 #C2C85A

Accessibility & contrast

On white

4.39
#797D2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#797D2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D2A
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D2A#FFFFFF#000000##000000
##797D2A1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86771F
Deuteranopia (green-blind)
#87792F
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d2a;
/* rgb */ color: rgb(121, 125, 42);
/* oklch */ color: oklch(56.9% 0.105 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a268',
    500: '#797d2a',
    950: '#000000',
  },
}
SCSS
$custom: #797d2a;
$custom-light: #a2a268;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2a",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 42
  },
  "hsl": {
    "h": 62.892,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56941,
    "c": 0.10522,
    "h": 111.9
  },
  "luminance": 0.18899
}

Semantic roles & 50–950 ramp

primary
#797D2A
secondary
#5A56AD
accent
#4FD955
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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