#797C26#797C26

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

Color values

HEX#797C26
RGBrgb(121, 124, 38)
HSLhsl(62, 53%, 32%)
HSVhsv(62, 69%, 49%)
CMYKcmyk(2.4%, 0%, 69.4%, 51.4%)
CIE-LABlab(50.24, -12.68, 44.48)
CIE-LCHlch(50.24, 46.25, 105.91°)
OKLaboklab(56.67% -0.039 0.0999)
OKLCHoklch(56.67% 0.107 111.3)
XYZxyz(15.4431, 18.6206, 4.6140)
Luminance0.1862 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C26 #29267C
analogous
#7C5426 #797C26 #4E7C26
triadic
#797C26 #26797C #7C2679
tetradic
#797C26 #267C54 #29267C #7C264E
square
#797C26 #267C54 #29267C #7C264E
split-complementary
#797C26 #264E7C #54267C
monochromatic
#1E1E09 #4B4D18 #797C26 #A7AB34 #C6CA52

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797C26#FFFFFF#000000##000000
##797C261.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)
#867619
Deuteranopia (green-blind)
#86792C
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c26;
/* rgb */ color: rgb(121, 124, 38);
/* oklch */ color: oklch(56.7% 0.107 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a166',
    500: '#797c26',
    950: '#000000',
  },
}
SCSS
$custom: #797c26;
$custom-light: #a2a166;
$custom-dark: #000000;
JSON
{
  "hex": "#797c26",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 38
  },
  "hsl": {
    "h": 62.093,
    "s": 53.086,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56667,
    "c": 0.10719,
    "h": 111.3
  },
  "luminance": 0.1862
}

Semantic roles & 50–950 ramp

primary
#797C26
secondary
#5350AE
accent
#4BDC50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797C26

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

Preview Lab → · Contrast checker → · Palette generator →

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