#797C2B#797C2B

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

Color values

HEX#797C2B
RGBrgb(121, 124, 43)
HSLhsl(62, 49%, 33%)
HSVhsv(62, 65%, 49%)
CMYKcmyk(2.4%, 0%, 65.3%, 51.4%)
CIE-LABlab(50.28, -12.35, 42.34)
CIE-LCHlch(50.28, 44.10, 106.26°)
OKLaboklab(56.71% -0.0375 0.0962)
OKLCHoklch(56.71% 0.103 111.3)
XYZxyz(15.5293, 18.6550, 5.0678)
Luminance0.1865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2B #2E2B7C
analogous
#7C562B #797C2B #517C2B
triadic
#797C2B #2B797C #7C2B79
tetradic
#797C2B #2B7C56 #2E2B7C #7C2B51
square
#797C2B #2B7C56 #2E2B7C #7C2B51
split-complementary
#797C2B #2B517C #562B7C
monochromatic
#20210B #4D4F1B #797C2B #A5A93B #C2C65B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C2B#FFFFFF#000000##000000
##797C2B1.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)
#857621
Deuteranopia (green-blind)
#867930
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2b;
/* rgb */ color: rgb(121, 124, 43);
/* oklch */ color: oklch(56.7% 0.103 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a169',
    500: '#797c2b',
    950: '#000000',
  },
}
SCSS
$custom: #797c2b;
$custom-light: #a2a169;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2b",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 43
  },
  "hsl": {
    "h": 62.222,
    "s": 48.503,
    "l": 32.745
  },
  "oklch": {
    "l": 0.56713,
    "c": 0.10322,
    "h": 111.3
  },
  "luminance": 0.18655
}

Semantic roles & 50–950 ramp

primary
#797C2B
secondary
#5A57AC
accent
#50D855
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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