#797D26#797D26

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

Color values

HEX#797D26
RGBrgb(121, 125, 38)
HSLhsl(63, 53%, 32%)
HSVhsv(63, 70%, 49%)
CMYKcmyk(3.2%, 0%, 69.6%, 51%)
CIE-LABlab(50.54, -13.22, 44.78)
CIE-LCHlch(50.54, 46.69, 106.45°)
OKLaboklab(56.9% -0.0405 0.1005)
OKLCHoklch(56.9% 0.108 111.9)
XYZxyz(15.5691, 18.8725, 4.6560)
Luminance0.1887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D26 #2A267D
analogous
#7D5626 #797D26 #4D7D26
triadic
#797D26 #26797D #7D2679
tetradic
#797D26 #267D56 #2A267D #7D264D
square
#797D26 #267D56 #2A267D #7D264D
split-complementary
#797D26 #264D7D #56267D
monochromatic
#1E1F09 #4C4E18 #797D26 #A6AC34 #C5CB53

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797D26#FFFFFF#000000##000000
##797D261.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)
#877719
Deuteranopia (green-blind)
#87792C
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d26;
/* rgb */ color: rgb(121, 125, 38);
/* oklch */ color: oklch(56.9% 0.108 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a266',
    500: '#797d26',
    950: '#000000',
  },
}
SCSS
$custom: #797d26;
$custom-light: #a2a266;
$custom-dark: #000000;
JSON
{
  "hex": "#797d26",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 38
  },
  "hsl": {
    "h": 62.759,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.56905,
    "c": 0.10835,
    "h": 111.9
  },
  "luminance": 0.18872
}

Semantic roles & 50–950 ramp

primary
#797D26
secondary
#5450AF
accent
#4BDD52
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D26

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

Preview Lab → · Contrast checker → · Palette generator →

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