#797424#797424

#797424 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.8% C 0.100 H 105.8°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797424
RGBrgb(121, 116, 36)
HSLhsl(56, 54%, 31%)
HSVhsv(56, 70%, 47%)
CMYKcmyk(0%, 4.1%, 70.2%, 52.5%)
CIE-LABlab(47.86, -8.40, 42.91)
CIE-LCHlch(47.86, 43.73, 101.07°)
OKLaboklab(54.76% -0.0271 0.0962)
OKLCHoklch(54.76% 0.1 105.8)
XYZxyz(14.4495, 16.6836, 4.1278)
Luminance0.1668 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797424 #242979
analogous
#794924 #797424 #537924
triadic
#797424 #247974 #742479
tetradic
#797424 #247949 #242979 #792453
square
#797424 #247949 #242979 #792453
split-complementary
#797424 #245379 #492479
monochromatic
#1B1A08 #4A4716 #797424 #A8A132 #CAC34D

Accessibility & contrast

On white

4.84
#797424 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#797424 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797424
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797424#FFFFFF#000000##FFFFFF
##7974241.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7018
Deuteranopia (green-blind)
#807329
Tritanopia (blue-blind)
#826C64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797424;
/* rgb */ color: rgb(121, 116, 36);
/* oklch */ color: oklch(54.8% 0.100 105.8);
Tailwind
colors: {
  custom: {
    50: '#a29b64',
    500: '#797424',
    950: '#000000',
  },
}
SCSS
$custom: #797424;
$custom-light: #a29b64;
$custom-dark: #000000;
JSON
{
  "hex": "#797424",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 36
  },
  "hsl": {
    "h": 56.471,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54762,
    "c": 0.09996,
    "h": 105.8
  },
  "luminance": 0.16683
}

Semantic roles & 50–950 ramp

primary
#797424
secondary
#4D53AC
accent
#53DE4A
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797424

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

Preview Lab → · Contrast checker → · Palette generator →

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