#797A24#797A24

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

Color values

HEX#797A24
RGBrgb(121, 122, 36)
HSLhsl(61, 54%, 31%)
HSVhsv(61, 70%, 48%)
CMYKcmyk(0.8%, 0%, 70.5%, 52.2%)
CIE-LABlab(49.63, -11.71, 44.70)
CIE-LCHlch(49.63, 46.21, 104.68°)
OKLaboklab(56.18% -0.0365 0.1)
OKLCHoklch(56.18% 0.106 110)
XYZxyz(15.1636, 18.1118, 4.3659)
Luminance0.1811 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A24 #25247A
analogous
#7A5024 #797A24 #4E7A24
triadic
#797A24 #24797A #7A2479
tetradic
#797A24 #247A50 #25247A #7A244E
square
#797A24 #247A50 #25247A #7A244E
split-complementary
#797A24 #244E7A #50247A
monochromatic
#1B1B08 #4A4B16 #797A24 #A8A932 #C9CB4E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797A24#FFFFFF#000000##000000
##797A241.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)
#847517
Deuteranopia (green-blind)
#85772A
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a24;
/* rgb */ color: rgb(121, 122, 36);
/* oklch */ color: oklch(56.2% 0.106 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a064',
    500: '#797a24',
    950: '#000000',
  },
}
SCSS
$custom: #797a24;
$custom-light: #a2a064;
$custom-dark: #000000;
JSON
{
  "hex": "#797a24",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 36
  },
  "hsl": {
    "h": 60.698,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56176,
    "c": 0.10642,
    "h": 110
  },
  "luminance": 0.18111
}

Semantic roles & 50–950 ramp

primary
#797A24
secondary
#4E4DAC
accent
#4ADE4C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A24

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

Preview Lab → · Contrast checker → · Palette generator →

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