#797C22#797C22

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

Color values

HEX#797C22
RGBrgb(121, 124, 34)
HSLhsl(62, 57%, 31%)
HSVhsv(62, 73%, 49%)
CMYKcmyk(2.4%, 0%, 72.6%, 51.4%)
CIE-LABlab(50.21, -12.92, 46.09)
CIE-LCHlch(50.21, 47.87, 105.66°)
OKLaboklab(56.64% -0.04 0.1025)
OKLCHoklch(56.64% 0.11 111.3)
XYZxyz(15.3820, 18.5961, 4.2922)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C22 #25227C
analogous
#7C5222 #797C22 #4C7C22
triadic
#797C22 #22797C #7C2279
tetradic
#797C22 #227C52 #25227C #7C224C
square
#797C22 #227C52 #25227C #7C224C
split-complementary
#797C22 #224C7C #52227C
monochromatic
#1B1C08 #4A4C15 #797C22 #A8AC2F #C9CE4B

Accessibility & contrast

On white

4.45
#797C22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797C22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C22
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C22#FFFFFF#000000##000000
##797C221.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#867613
Deuteranopia (green-blind)
#867929
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c22;
/* rgb */ color: rgb(121, 124, 34);
/* oklch */ color: oklch(56.6% 0.110 111.3);
Tailwind
colors: {
  custom: {
    50: '#a3a164',
    500: '#797c22',
    950: '#000000',
  },
}
SCSS
$custom: #797c22;
$custom-light: #a3a164;
$custom-dark: #000000;
JSON
{
  "hex": "#797c22",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 34
  },
  "hsl": {
    "h": 62,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56635,
    "c": 0.11008,
    "h": 111.3
  },
  "luminance": 0.18596
}

Semantic roles & 50–950 ramp

primary
#797C22
secondary
#4E4BAF
accent
#48E04D
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C22

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

Preview Lab → · Contrast checker → · Palette generator →

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