#797C2C#797C2C

#797C2C is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.7% C 0.102 H 111.3°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#797C2C
RGBrgb(121, 124, 44)
HSLhsl(62, 48%, 33%)
HSVhsv(62, 65%, 49%)
CMYKcmyk(2.4%, 0%, 64.5%, 51.4%)
CIE-LABlab(50.29, -12.28, 41.89)
CIE-LCHlch(50.29, 43.65, 106.34°)
OKLaboklab(56.72% -0.0372 0.0954)
OKLCHoklch(56.72% 0.102 111.3)
XYZxyz(15.5479, 18.6625, 5.1656)
Luminance0.1866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2C #2F2C7C
analogous
#7C572C #797C2C #517C2C
triadic
#797C2C #2C797C #7C2C79
tetradic
#797C2C #2C7C57 #2F2C7C #7C2C51
square
#797C2C #2C7C57 #2F2C7C #7C2C51
split-complementary
#797C2C #2C517C #572C7C
monochromatic
#21220C #4D4F1C #797C2C #A5A93C #C2C55D

Accessibility & contrast

On white

4.44
#797C2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#797C2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C2C
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C2C#FFFFFF#000000##000000
##797C2C1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#857722
Deuteranopia (green-blind)
#867931
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2c;
/* rgb */ color: rgb(121, 124, 44);
/* oklch */ color: oklch(56.7% 0.102 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a169',
    500: '#797c2c',
    950: '#000000',
  },
}
SCSS
$custom: #797c2c;
$custom-light: #a2a169;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2c",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 44
  },
  "hsl": {
    "h": 62.25,
    "s": 47.619,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56723,
    "c": 0.10238,
    "h": 111.3
  },
  "luminance": 0.18662
}

Semantic roles & 50–950 ramp

primary
#797C2C
secondary
#5B58AC
accent
#51D756
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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