#797A22#797A22

#797A22 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.108 H 110.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#797A22
RGBrgb(121, 122, 34)
HSLhsl(61, 56%, 31%)
HSVhsv(61, 72%, 48%)
CMYKcmyk(0.8%, 0%, 72.1%, 52.2%)
CIE-LABlab(49.62, -11.83, 45.51)
CIE-LCHlch(49.62, 47.02, 104.57°)
OKLaboklab(56.16% -0.037 0.1013)
OKLCHoklch(56.16% 0.108 110.1)
XYZxyz(15.1339, 18.0999, 4.2095)
Luminance0.1810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A22 #23227A
analogous
#7A4F22 #797A22 #4D7A22
triadic
#797A22 #22797A #7A2279
tetradic
#797A22 #227A4F #23227A #7A224D
square
#797A22 #227A4F #23227A #7A224D
split-complementary
#797A22 #224D7A #4F227A
monochromatic
#1A1A07 #4A4A15 #797A22 #A8AA2F #CBCD4A

Accessibility & contrast

On white

4.55
#797A22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#797A22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A22
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A22#FFFFFF#000000##000000
##797A221.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847513
Deuteranopia (green-blind)
#857728
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a22;
/* rgb */ color: rgb(121, 122, 34);
/* oklch */ color: oklch(56.2% 0.108 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a063',
    500: '#797a22',
    950: '#000000',
  },
}
SCSS
$custom: #797a22;
$custom-light: #a3a063;
$custom-dark: #000000;
JSON
{
  "hex": "#797a22",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 34
  },
  "hsl": {
    "h": 60.682,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5616,
    "c": 0.10786,
    "h": 110.1
  },
  "luminance": 0.181
}

Semantic roles & 50–950 ramp

primary
#797A22
secondary
#4C4BAD
accent
#48E04A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A22

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

Preview Lab → · Contrast checker → · Palette generator →

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