#797F22#797F22

#797F22 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.114 H 113.1°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797F22
RGBrgb(121, 127, 34)
HSLhsl(64, 58%, 32%)
HSVhsv(64, 73%, 50%)
CMYKcmyk(4.7%, 0%, 73.2%, 50.2%)
CIE-LABlab(51.11, -14.54, 46.97)
CIE-LCHlch(51.11, 49.16, 107.20°)
OKLaboklab(57.35% -0.0446 0.1044)
OKLCHoklch(57.35% 0.114 113.1)
XYZxyz(15.7637, 19.3595, 4.4194)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F22 #28227F
analogous
#7F5722 #797F22 #4B7F22
triadic
#797F22 #22797F #7F2279
tetradic
#797F22 #227F57 #28227F #7F224B
square
#797F22 #227F57 #28227F #7F224B
split-complementary
#797F22 #224B7F #57227F
monochromatic
#1D1E08 #4B4F15 #797F22 #A7AF2F #C7CF4C

Accessibility & contrast

On white

4.31
#797F22 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797F22 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F22
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F22#FFFFFF#000000##000000
##797F221.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#897912
Deuteranopia (green-blind)
#897B29
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f22;
/* rgb */ color: rgb(121, 127, 34);
/* oklch */ color: oklch(57.4% 0.114 113.1);
Tailwind
colors: {
  custom: {
    50: '#a3a464',
    500: '#797f22',
    950: '#000000',
  },
}
SCSS
$custom: #797f22;
$custom-light: #a3a464;
$custom-dark: #000000;
JSON
{
  "hex": "#797f22",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 34
  },
  "hsl": {
    "h": 63.871,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.5735,
    "c": 0.1135,
    "h": 113.1
  },
  "luminance": 0.19359
}

Semantic roles & 50–950 ramp

primary
#797F22
secondary
#524BB2
accent
#47E151
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F22

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

Preview Lab → · Contrast checker → · Palette generator →

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