#797D22#797D22

#797D22 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.111 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797D22
RGBrgb(121, 125, 34)
HSLhsl(63, 57%, 31%)
HSVhsv(63, 73%, 49%)
CMYKcmyk(3.2%, 0%, 72.8%, 51%)
CIE-LABlab(50.51, -13.46, 46.38)
CIE-LCHlch(50.51, 48.30, 106.18°)
OKLaboklab(56.87% -0.0416 0.1032)
OKLCHoklch(56.87% 0.111 111.9)
XYZxyz(15.5080, 18.8480, 4.3342)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D22 #26227D
analogous
#7D5322 #797D22 #4B7D22
triadic
#797D22 #22797D #7D2279
tetradic
#797D22 #227D53 #26227D #7D224B
square
#797D22 #227D53 #26227D #7D224B
split-complementary
#797D22 #224B7D #53227D
monochromatic
#1C1D08 #4A4D15 #797D22 #A8AD2F #C8CE4B

Accessibility & contrast

On white

4.40
#797D22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797D22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D22
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D22#FFFFFF#000000##000000
##797D221.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877712
Deuteranopia (green-blind)
#877929
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d22;
/* rgb */ color: rgb(121, 125, 34);
/* oklch */ color: oklch(56.9% 0.111 111.9);
Tailwind
colors: {
  custom: {
    50: '#a3a264',
    500: '#797d22',
    950: '#000000',
  },
}
SCSS
$custom: #797d22;
$custom-light: #a3a264;
$custom-dark: #000000;
JSON
{
  "hex": "#797d22",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 62.637,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56873,
    "c": 0.11121,
    "h": 111.9
  },
  "luminance": 0.18848
}

Semantic roles & 50–950 ramp

primary
#797D22
secondary
#504BB0
accent
#47E04E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D22

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

Preview Lab → · Contrast checker → · Palette generator →

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