#797F26#797F26

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

Color values

HEX#797F26
RGBrgb(121, 127, 38)
HSLhsl(64, 54%, 32%)
HSVhsv(64, 70%, 50%)
CMYKcmyk(4.7%, 0%, 70.1%, 50.2%)
CIE-LABlab(51.13, -14.30, 45.39)
CIE-LCHlch(51.13, 47.59, 107.49°)
OKLaboklab(57.38% -0.0435 0.1018)
OKLCHoklch(57.38% 0.111 113.1)
XYZxyz(15.8248, 19.3840, 4.7412)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F26 #2C267F
analogous
#7F5926 #797F26 #4D7F26
triadic
#797F26 #26797F #7F2679
tetradic
#797F26 #267F59 #2C267F #7F264D
square
#797F26 #267F59 #2C267F #7F264D
split-complementary
#797F26 #264D7F #59267F
monochromatic
#1F210A #4C5018 #797F26 #A6AE34 #C4CC54

Accessibility & contrast

On white

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

On black

4.88
#797F26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F26
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F26#FFFFFF#000000##000000
##797F261.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797f26;
/* rgb */ color: rgb(121, 127, 38);
/* oklch */ color: oklch(57.4% 0.111 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a466',
    500: '#797f26',
    950: '#000000',
  },
}
SCSS
$custom: #797f26;
$custom-light: #a2a466;
$custom-dark: #000000;
JSON
{
  "hex": "#797f26",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 38
  },
  "hsl": {
    "h": 64.045,
    "s": 53.939,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57382,
    "c": 0.11068,
    "h": 113.1
  },
  "luminance": 0.19384
}

Semantic roles & 50–950 ramp

primary
#797F26
secondary
#5751B0
accent
#4ADD54
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F26

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

Preview Lab → · Contrast checker → · Palette generator →

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