#797D2C#797D2C

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

Color values

HEX#797D2C
RGBrgb(121, 125, 44)
HSLhsl(63, 48%, 33%)
HSVhsv(63, 65%, 49%)
CMYKcmyk(3.2%, 0%, 64.8%, 51%)
CIE-LABlab(50.59, -12.82, 42.21)
CIE-LCHlch(50.59, 44.11, 106.90°)
OKLaboklab(56.96% -0.0387 0.0961)
OKLCHoklch(56.96% 0.104 111.9)
XYZxyz(15.6738, 18.9144, 5.2076)
Luminance0.1891 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2C #302C7D
analogous
#7D582C #797D2C #507D2C
triadic
#797D2C #2C797D #7D2C79
tetradic
#797D2C #2C7D58 #302C7D #7D2C50
square
#797D2C #2C7D58 #302C7D #7D2C50
split-complementary
#797D2C #2C507D #582C7D
monochromatic
#21220C #4D501C #797D2C #A5AA3C #C1C65D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D2C#FFFFFF#000000##000000
##797D2C1.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)
#867722
Deuteranopia (green-blind)
#877931
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d2c;
/* rgb */ color: rgb(121, 125, 44);
/* oklch */ color: oklch(57.0% 0.104 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a269',
    500: '#797d2c',
    950: '#000000',
  },
}
SCSS
$custom: #797d2c;
$custom-light: #a2a269;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2c",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 44
  },
  "hsl": {
    "h": 62.963,
    "s": 47.929,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5696,
    "c": 0.10356,
    "h": 111.9
  },
  "luminance": 0.18914
}

Semantic roles & 50–950 ramp

primary
#797D2C
secondary
#5D59AC
accent
#50D857
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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