#797C1A#797C1A

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

Color values

HEX#797C1A
RGBrgb(121, 124, 26)
HSLhsl(62, 65%, 29%)
HSVhsv(62, 79%, 49%)
CMYKcmyk(2.4%, 0%, 79%, 51.4%)
CIE-LABlab(50.16, -13.31, 48.98)
CIE-LCHlch(50.16, 50.76, 105.21°)
OKLaboklab(56.58% -0.0419 0.1071)
OKLCHoklch(56.58% 0.115 111.4)
XYZxyz(15.2798, 18.5552, 3.7537)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C1A #1D1A7C
analogous
#7C4E1A #797C1A #487C1A
triadic
#797C1A #1A797C #7C1A79
tetradic
#797C1A #1A7C4E #1D1A7C #7C1A48
square
#797C1A #1A7C4E #1D1A7C #7C1A48
split-complementary
#797C1A #1A487C #4E1A7C
monochromatic
#191905 #48490F #797C1A #AAAF25 #D1D63B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C1A#FFFFFF#000000##000000
##797C1A1.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)
#867601
Deuteranopia (green-blind)
#877923
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c1a;
/* rgb */ color: rgb(121, 124, 26);
/* oklch */ color: oklch(56.6% 0.115 111.4);
Tailwind
colors: {
  custom: {
    50: '#a3a160',
    500: '#797c1a',
    950: '#000000',
  },
}
SCSS
$custom: #797c1a;
$custom-light: #a3a160;
$custom-dark: #000000;
JSON
{
  "hex": "#797c1a",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 26
  },
  "hsl": {
    "h": 61.837,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56581,
    "c": 0.11504,
    "h": 111.4
  },
  "luminance": 0.18555
}

Semantic roles & 50–950 ramp

primary
#797C1A
secondary
#4542B0
accent
#40E845
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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