#797C2A#797C2A

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

Color values

HEX#797C2A
RGBrgb(121, 124, 42)
HSLhsl(62, 49%, 33%)
HSVhsv(62, 66%, 49%)
CMYKcmyk(2.4%, 0%, 66.1%, 51.4%)
CIE-LABlab(50.27, -12.42, 42.78)
CIE-LCHlch(50.27, 44.54, 106.19°)
OKLaboklab(56.7% -0.0378 0.0969)
OKLCHoklch(56.7% 0.104 111.3)
XYZxyz(15.5112, 18.6478, 4.9723)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2A #2D2A7C
analogous
#7C562A #797C2A #507C2A
triadic
#797C2A #2A797C #7C2A79
tetradic
#797C2A #2A7C56 #2D2A7C #7C2A50
square
#797C2A #2A7C56 #2D2A7C #7C2A50
split-complementary
#797C2A #2A507C #562A7C
monochromatic
#20210B #4C4E1B #797C2A #A6AA39 #C3C759

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C2A#FFFFFF#000000##000000
##797C2A1.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)
#86761F
Deuteranopia (green-blind)
#86792F
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2a;
/* rgb */ color: rgb(121, 124, 42);
/* oklch */ color: oklch(56.7% 0.104 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a168',
    500: '#797c2a',
    950: '#000000',
  },
}
SCSS
$custom: #797c2a;
$custom-light: #a2a168;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2a",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 42
  },
  "hsl": {
    "h": 62.195,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.56703,
    "c": 0.10405,
    "h": 111.3
  },
  "luminance": 0.18647
}

Semantic roles & 50–950 ramp

primary
#797C2A
secondary
#5855AD
accent
#4FD954
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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