#797E26#797E26

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

Color values

HEX#797E26
RGBrgb(121, 126, 38)
HSLhsl(63, 54%, 32%)
HSVhsv(63, 70%, 49%)
CMYKcmyk(4%, 0%, 69.8%, 50.6%)
CIE-LABlab(50.84, -13.76, 45.08)
CIE-LCHlch(50.84, 47.14, 106.98°)
OKLaboklab(57.14% -0.042 0.1011)
OKLCHoklch(57.14% 0.11 112.6)
XYZxyz(15.6963, 19.1269, 4.6984)
Luminance0.1913 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E26 #2B267E
analogous
#7E5726 #797E26 #4D7E26
triadic
#797E26 #26797E #7E2679
tetradic
#797E26 #267E57 #2B267E #7E264D
square
#797E26 #267E57 #2B267E #7E264D
split-complementary
#797E26 #264D7E #57267E
monochromatic
#1F200A #4C4F18 #797E26 #A6AD34 #C4CB53

Accessibility & contrast

On white

4.35
#797E26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#797E26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E26
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E26#FFFFFF#000000##000000
##797E261.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797e26;
/* rgb */ color: rgb(121, 126, 38);
/* oklch */ color: oklch(57.1% 0.110 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a366',
    500: '#797e26',
    950: '#000000',
  },
}
SCSS
$custom: #797e26;
$custom-light: #a2a366;
$custom-dark: #000000;
JSON
{
  "hex": "#797e26",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 38
  },
  "hsl": {
    "h": 63.409,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.57143,
    "c": 0.1095,
    "h": 112.6
  },
  "luminance": 0.19127
}

Semantic roles & 50–950 ramp

primary
#797E26
secondary
#5650B0
accent
#4BDD53
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E26

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

Preview Lab → · Contrast checker → · Palette generator →

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