#797924#797924

#797924 is a mid, moderate yellow. Relative luminance 0.179; OKLCH L 55.9% C 0.105 H 109.4°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#797924
RGBrgb(121, 121, 36)
HSLhsl(60, 54%, 31%)
HSVhsv(60, 70%, 47%)
CMYKcmyk(0%, 0%, 70.2%, 52.5%)
CIE-LABlab(49.34, -11.17, 44.41)
CIE-LCHlch(49.34, 45.79, 104.11°)
OKLaboklab(55.94% -0.0349 0.0993)
OKLCHoklch(55.94% 0.105 109.4)
XYZxyz(15.0415, 17.8675, 4.3252)
Luminance0.1787 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797924 #242479
analogous
#794E24 #797924 #4E7924
triadic
#797924 #247979 #792479
tetradic
#797924 #24794E #242479 #79244E
square
#797924 #24794E #242479 #79244E
split-complementary
#797924 #244E79 #4E2479
monochromatic
#1B1B08 #4A4A16 #797924 #A8A832 #CACA4D

Accessibility & contrast

On white

4.59
#797924 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#797924 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797924
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797924#FFFFFF#000000##FFFFFF
##7979241.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837417
Deuteranopia (green-blind)
#84772A
Tritanopia (blue-blind)
#827168
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797924;
/* rgb */ color: rgb(121, 121, 36);
/* oklch */ color: oklch(55.9% 0.105 109.4);
Tailwind
colors: {
  custom: {
    50: '#a29f64',
    500: '#797924',
    950: '#000000',
  },
}
SCSS
$custom: #797924;
$custom-light: #a29f64;
$custom-dark: #000000;
JSON
{
  "hex": "#797924",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 36
  },
  "hsl": {
    "h": 60,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.55939,
    "c": 0.10531,
    "h": 109.4
  },
  "luminance": 0.17867
}

Semantic roles & 50–950 ramp

primary
#797924
secondary
#4D4DAC
accent
#4ADE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797924

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

Preview Lab → · Contrast checker → · Palette generator →

#797924 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva