#797A26#797A26

#797A26 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.105 H 110.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#797A26
RGBrgb(121, 122, 38)
HSLhsl(61, 53%, 31%)
HSVhsv(61, 69%, 48%)
CMYKcmyk(0.8%, 0%, 68.9%, 52.2%)
CIE-LABlab(49.65, -11.59, 43.88)
CIE-LCHlch(49.65, 45.38, 104.80°)
OKLaboklab(56.19% -0.0359 0.0986)
OKLCHoklch(56.19% 0.105 110)
XYZxyz(15.1950, 18.1244, 4.5313)
Luminance0.1812 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A26 #27267A
analogous
#7A5126 #797A26 #4F7A26
triadic
#797A26 #26797A #7A2679
tetradic
#797A26 #267A51 #27267A #7A264F
square
#797A26 #267A51 #27267A #7A264F
split-complementary
#797A26 #264F7A #51267A
monochromatic
#1C1D09 #4B4B17 #797A26 #A7A935 #C8C951

Accessibility & contrast

On white

4.54
#797A26 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#797A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A26
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A26#FFFFFF#000000##000000
##797A261.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751A
Deuteranopia (green-blind)
#85772C
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a26;
/* rgb */ color: rgb(121, 122, 38);
/* oklch */ color: oklch(56.2% 0.105 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a066',
    500: '#797a26',
    950: '#000000',
  },
}
SCSS
$custom: #797a26;
$custom-light: #a2a066;
$custom-dark: #000000;
JSON
{
  "hex": "#797a26",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 38
  },
  "hsl": {
    "h": 60.714,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.56193,
    "c": 0.10493,
    "h": 110
  },
  "luminance": 0.18124
}

Semantic roles & 50–950 ramp

primary
#797A26
secondary
#5150AC
accent
#4CDC4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A26

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

Preview Lab → · Contrast checker → · Palette generator →

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