#797D24#797D24

#797D24 is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 56.9% C 0.110 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797D24
RGBrgb(121, 125, 36)
HSLhsl(63, 55%, 32%)
HSVhsv(63, 71%, 49%)
CMYKcmyk(3.2%, 0%, 71.2%, 51%)
CIE-LABlab(50.52, -13.34, 45.59)
CIE-LCHlch(50.52, 47.51, 106.31°)
OKLaboklab(56.89% -0.041 0.1019)
OKLCHoklch(56.89% 0.11 111.9)
XYZxyz(15.5377, 18.8599, 4.4906)
Luminance0.1886 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D24 #28247D
analogous
#7D5524 #797D24 #4D7D24
triadic
#797D24 #24797D #7D2479
tetradic
#797D24 #247D55 #28247D #7D244D
square
#797D24 #247D55 #28247D #7D244D
split-complementary
#797D24 #244D7D #55247D
monochromatic
#1D1E09 #4B4D16 #797D24 #A7AD32 #C7CC4F

Accessibility & contrast

On white

4.40
#797D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D24
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D24#FFFFFF#000000##000000
##797D241.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#877716
Deuteranopia (green-blind)
#87792A
Tritanopia (blue-blind)
#81756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d24;
/* rgb */ color: rgb(121, 125, 36);
/* oklch */ color: oklch(56.9% 0.110 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a265',
    500: '#797d24',
    950: '#000000',
  },
}
SCSS
$custom: #797d24;
$custom-light: #a2a265;
$custom-dark: #000000;
JSON
{
  "hex": "#797d24",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 62.697,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.56889,
    "c": 0.10982,
    "h": 111.9
  },
  "luminance": 0.1886
}

Semantic roles & 50–950 ramp

primary
#797D24
secondary
#524DAF
accent
#49DF50
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D24

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

Preview Lab → · Contrast checker → · Palette generator →

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