#797F24#797F24

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

Color values

HEX#797F24
RGBrgb(121, 127, 36)
HSLhsl(64, 56%, 32%)
HSVhsv(64, 72%, 50%)
CMYKcmyk(4.7%, 0%, 71.7%, 50.2%)
CIE-LABlab(51.12, -14.42, 46.19)
CIE-LCHlch(51.12, 48.39, 107.34°)
OKLaboklab(57.37% -0.044 0.1031)
OKLCHoklch(57.37% 0.112 113.1)
XYZxyz(15.7934, 19.3714, 4.5758)
Luminance0.1937 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F24 #2A247F
analogous
#7F5824 #797F24 #4C7F24
triadic
#797F24 #24797F #7F2479
tetradic
#797F24 #247F58 #2A247F #7F244C
square
#797F24 #247F58 #2A247F #7F244C
split-complementary
#797F24 #244C7F #58247F
monochromatic
#1E2009 #4C4F16 #797F24 #A6AF32 #C5CD50

Accessibility & contrast

On white

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

On black

4.87
#797F24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F24
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F24#FFFFFF#000000##000000
##797F241.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797f24;
/* rgb */ color: rgb(121, 127, 36);
/* oklch */ color: oklch(57.4% 0.112 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a465',
    500: '#797f24',
    950: '#000000',
  },
}
SCSS
$custom: #797f24;
$custom-light: #a2a465;
$custom-dark: #000000;
JSON
{
  "hex": "#797f24",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 36
  },
  "hsl": {
    "h": 63.956,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57366,
    "c": 0.11213,
    "h": 113.1
  },
  "luminance": 0.19371
}

Semantic roles & 50–950 ramp

primary
#797F24
secondary
#544EB1
accent
#49DF53
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797F24

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

Preview Lab → · Contrast checker → · Palette generator →

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