#797E1A#797E1A

#797E1A is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.117 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E1A
RGBrgb(121, 126, 26)
HSLhsl(63, 66%, 30%)
HSVhsv(63, 79%, 49%)
CMYKcmyk(4%, 0%, 79.4%, 50.6%)
CIE-LABlab(50.76, -14.39, 49.53)
CIE-LCHlch(50.76, 51.57, 106.20°)
OKLaboklab(57.06% -0.0449 0.1083)
OKLCHoklch(57.06% 0.117 112.5)
XYZxyz(15.5330, 19.0616, 3.8381)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E1A #1F1A7E
analogous
#7E511A #797E1A #477E1A
triadic
#797E1A #1A797E #7E1A79
tetradic
#797E1A #1A7E51 #1F1A7E #7E1A47
square
#797E1A #1A7E51 #1F1A7E #7E1A47
split-complementary
#797E1A #1A477E #511A7E
monochromatic
#181905 #484B10 #797E1A #AAB124 #CFD73C

Accessibility & contrast

On white

4.36
#797E1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E1A
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E1A#FFFFFF#000000##000000
##797E1A1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A23
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e1a;
/* rgb */ color: rgb(121, 126, 26);
/* oklch */ color: oklch(57.1% 0.117 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a360',
    500: '#797e1a',
    950: '#000000',
  },
}
SCSS
$custom: #797e1a;
$custom-light: #a3a360;
$custom-dark: #000000;
JSON
{
  "hex": "#797e1a",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 63,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.57058,
    "c": 0.11724,
    "h": 112.5
  },
  "luminance": 0.19061
}

Semantic roles & 50–950 ramp

primary
#797E1A
secondary
#4742B2
accent
#3FE948
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #797E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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