#797C16#797C16

#797C16 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.117 H 111.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797C16
RGBrgb(121, 124, 22)
HSLhsl(62, 70%, 29%)
HSVhsv(62, 82%, 49%)
CMYKcmyk(2.4%, 0%, 82.3%, 51.4%)
CIE-LABlab(50.14, -13.47, 50.24)
CIE-LCHlch(50.14, 52.02, 105.01°)
OKLaboklab(56.56% -0.0427 0.109)
OKLCHoklch(56.56% 0.117 111.4)
XYZxyz(15.2382, 18.5386, 3.5345)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C16 #19167C
analogous
#7C4C16 #797C16 #467C16
triadic
#797C16 #16797C #7C1679
tetradic
#797C16 #167C4C #19167C #7C1646
square
#797C16 #167C4C #19167C #7C1646
split-complementary
#797C16 #16467C #4C167C
monochromatic
#191A05 #46480D #797C16 #ACB01F #D6DB32

Accessibility & contrast

On white

4.46
#797C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C16
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C16#FFFFFF#000000##000000
##797C161.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#877820
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c16;
/* rgb */ color: rgb(121, 124, 22);
/* oklch */ color: oklch(56.6% 0.117 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a15e',
    500: '#797c16',
    950: '#000000',
  },
}
SCSS
$custom: #797c16;
$custom-light: #a3a15e;
$custom-dark: #000000;
JSON
{
  "hex": "#797c16",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 61.765,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56558,
    "c": 0.11711,
    "h": 111.4
  },
  "luminance": 0.18538
}

Semantic roles & 50–950 ramp

primary
#797C16
secondary
#403DB1
accent
#3BED40
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797C16

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

Preview Lab → · Contrast checker → · Palette generator →

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