#797C2E#797C2E

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

Color values

HEX#797C2E
RGBrgb(121, 124, 46)
HSLhsl(62, 46%, 33%)
HSVhsv(62, 63%, 49%)
CMYKcmyk(2.4%, 0%, 62.9%, 51.4%)
CIE-LABlab(50.31, -12.13, 40.99)
CIE-LCHlch(50.31, 42.75, 106.49°)
OKLaboklab(56.74% -0.0365 0.0938)
OKLCHoklch(56.74% 0.101 111.3)
XYZxyz(15.5864, 18.6779, 5.3684)
Luminance0.1868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2E #312E7C
analogous
#7C582E #797C2E #527C2E
triadic
#797C2E #2E797C #7C2E79
tetradic
#797C2E #2E7C58 #312E7C #7C2E52
square
#797C2E #2E7C58 #312E7C #7C2E52
split-complementary
#797C2E #2E527C #582E7C
monochromatic
#22230D #4D4F1D #797C2E #A5A93F #C0C460

Accessibility & contrast

On white

4.43
#797C2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#797C2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C2E
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C2E#FFFFFF#000000##000000
##797C2E1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857725
Deuteranopia (green-blind)
#867933
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2e;
/* rgb */ color: rgb(121, 124, 46);
/* oklch */ color: oklch(56.7% 0.101 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a16a',
    500: '#797c2e',
    950: '#000000',
  },
}
SCSS
$custom: #797c2e;
$custom-light: #a2a16a;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2e",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 46
  },
  "hsl": {
    "h": 62.308,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.10063,
    "h": 111.3
  },
  "luminance": 0.18678
}

Semantic roles & 50–950 ramp

primary
#797C2E
secondary
#5E5BAB
accent
#52D657
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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