#797F1A#797F1A

#797F1A is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.118 H 113.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797F1A
RGBrgb(121, 127, 26)
HSLhsl(64, 66%, 30%)
HSVhsv(64, 80%, 50%)
CMYKcmyk(4.7%, 0%, 79.5%, 50.2%)
CIE-LABlab(51.06, -14.93, 49.80)
CIE-LCHlch(51.06, 51.99, 106.69°)
OKLaboklab(57.3% -0.0464 0.1089)
OKLCHoklch(57.3% 0.118 113.1)
XYZxyz(15.6615, 19.3186, 3.8809)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F1A #201A7F
analogous
#7F521A #797F1A #477F1A
triadic
#797F1A #1A797F #7F1A79
tetradic
#797F1A #1A7F52 #201A7F #7F1A47
square
#797F1A #1A7F52 #201A7F #7F1A47
split-complementary
#797F1A #1A477F #521A7F
monochromatic
#181905 #494C10 #797F1A #A9B224 #CED73C

Accessibility & contrast

On white

4.32
#797F1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797F1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F1A
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F1A#FFFFFF#000000##000000
##797F1A1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#897B23
Tritanopia (blue-blind)
#82776C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f1a;
/* rgb */ color: rgb(121, 127, 26);
/* oklch */ color: oklch(57.3% 0.118 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a360',
    500: '#797f1a',
    950: '#000000',
  },
}
SCSS
$custom: #797f1a;
$custom-light: #a3a360;
$custom-dark: #000000;
JSON
{
  "hex": "#797f1a",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 26
  },
  "hsl": {
    "h": 63.564,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.57297,
    "c": 0.11835,
    "h": 113.1
  },
  "luminance": 0.19318
}

Semantic roles & 50–950 ramp

primary
#797F1A
secondary
#4942B3
accent
#3FE949
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #797F1A

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

Preview Lab → · Contrast checker → · Palette generator →

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