#797240#797240

#797240 is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.6% C 0.070 H 101.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797240
RGBrgb(121, 114, 64)
HSLhsl(53, 31%, 36%)
HSVhsv(53, 47%, 47%)
CMYKcmyk(0%, 5.8%, 47.1%, 52.5%)
CIE-LABlab(47.59, -4.91, 28.58)
CIE-LCHlch(47.59, 29.00, 99.75°)
OKLaboklab(54.65% -0.0139 0.0688)
OKLCHoklch(54.65% 0.07 101.4)
XYZxyz(14.8282, 16.4702, 7.2475)
Luminance0.1647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797240 #404779
analogous
#795640 #797240 #647940
triadic
#797240 #407972 #724079
tetradic
#797240 #407956 #404779 #794064
square
#797240 #407956 #404779 #794064
split-complementary
#797240 #406479 #564079
monochromatic
#292716 #514C2B #797240 #A19855 #B9B17A

Accessibility & contrast

On white

4.89
#797240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#797240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797240
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797240#FFFFFF#000000##FFFFFF
##7972401.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6F3C
Deuteranopia (green-blind)
#7D7242
Tritanopia (blue-blind)
#816C66
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797240;
/* rgb */ color: rgb(121, 114, 64);
/* oklch */ color: oklch(54.6% 0.070 101.4);
Tailwind
colors: {
  custom: {
    50: '#a19a76',
    500: '#797240',
    950: '#000000',
  },
}
SCSS
$custom: #797240;
$custom-light: #a19a76;
$custom-dark: #000000;
JSON
{
  "hex": "#797240",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 64
  },
  "hsl": {
    "h": 52.632,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.0702,
    "h": 101.4
  },
  "luminance": 0.1647
}

Semantic roles & 50–950 ramp

primary
#797240
secondary
#7177A4
accent
#6DC761
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797240

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

Preview Lab → · Contrast checker → · Palette generator →

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