#797E22#797E22

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

Color values

HEX#797E22
RGBrgb(121, 126, 34)
HSLhsl(63, 58%, 31%)
HSVhsv(63, 73%, 49%)
CMYKcmyk(4%, 0%, 73%, 50.6%)
CIE-LABlab(50.81, -14.00, 46.67)
CIE-LCHlch(50.81, 48.73, 106.69°)
OKLaboklab(57.11% -0.0431 0.1038)
OKLCHoklch(57.11% 0.112 112.5)
XYZxyz(15.6352, 19.1025, 4.3766)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E22 #27227E
analogous
#7E5522 #797E22 #4B7E22
triadic
#797E22 #22797E #7E2279
tetradic
#797E22 #227E55 #27227E #7E224B
square
#797E22 #227E55 #27227E #7E224B
split-complementary
#797E22 #224B7E #55227E
monochromatic
#1C1E08 #4B4E15 #797E22 #A7AE2F #C8CF4C

Accessibility & contrast

On white

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

On black

4.82
#797E22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E22
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E22#FFFFFF#000000##000000
##797E221.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#887812
Deuteranopia (green-blind)
#887A29
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e22;
/* rgb */ color: rgb(121, 126, 34);
/* oklch */ color: oklch(57.1% 0.112 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a364',
    500: '#797e22',
    950: '#000000',
  },
}
SCSS
$custom: #797e22;
$custom-light: #a3a364;
$custom-dark: #000000;
JSON
{
  "hex": "#797e22",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 34
  },
  "hsl": {
    "h": 63.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57111,
    "c": 0.11235,
    "h": 112.5
  },
  "luminance": 0.19102
}

Semantic roles & 50–950 ramp

primary
#797E22
secondary
#514BB1
accent
#47E14F
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E22

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

Preview Lab → · Contrast checker → · Palette generator →

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