#797040#797040

#797040 is a mid, moderate yellow. Relative luminance 0.160; OKLCH L 54.2% C 0.068 H 98.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#797040
RGBrgb(121, 112, 64)
HSLhsl(51, 31%, 36%)
HSVhsv(51, 47%, 47%)
CMYKcmyk(0%, 7.4%, 47.1%, 52.5%)
CIE-LABlab(47.01, -3.77, 27.86)
CIE-LCHlch(47.01, 28.11, 97.70°)
OKLaboklab(54.19% -0.0106 0.0672)
OKLCHoklch(54.19% 0.068 98.9)
XYZxyz(14.6051, 16.0239, 7.1731)
Luminance0.1602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797040 #404979
analogous
#795440 #797040 #667940
triadic
#797040 #407970 #704079
tetradic
#797040 #407954 #404979 #794066
square
#797040 #407954 #404979 #794066
split-complementary
#797040 #406679 #544079
monochromatic
#292616 #514B2B #797040 #A19555 #B9AF7A

Accessibility & contrast

On white

4.99
#797040 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#797040 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797040
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797040#FFFFFF#000000##FFFFFF
##7970401.004.994.204.99
#FFFFFF4.991.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786D3C
Deuteranopia (green-blind)
#7B7142
Tritanopia (blue-blind)
#816A64
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #797040;
/* rgb */ color: rgb(121, 112, 64);
/* oklch */ color: oklch(54.2% 0.068 98.9);
Tailwind
colors: {
  custom: {
    50: '#a19876',
    500: '#797040',
    950: '#000000',
  },
}
SCSS
$custom: #797040;
$custom-light: #a19876;
$custom-dark: #000000;
JSON
{
  "hex": "#797040",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 64
  },
  "hsl": {
    "h": 50.526,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.54186,
    "c": 0.06802,
    "h": 98.9
  },
  "luminance": 0.16023
}

Semantic roles & 50–950 ramp

primary
#797040
secondary
#7179A4
accent
#71C761
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #797040

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

Preview Lab → · Contrast checker → · Palette generator →

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