#797340#797340

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

Color values

HEX#797340
RGBrgb(121, 115, 64)
HSLhsl(54, 31%, 36%)
HSVhsv(54, 47%, 47%)
CMYKcmyk(0%, 5%, 47.1%, 52.5%)
CIE-LABlab(47.88, -5.48, 28.94)
CIE-LCHlch(47.88, 29.45, 100.72°)
OKLaboklab(54.88% -0.0155 0.0696)
OKLCHoklch(54.88% 0.071 102.5)
XYZxyz(14.9417, 16.6970, 7.2853)
Luminance0.1670 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797340 #404679
analogous
#795740 #797340 #637940
triadic
#797340 #407973 #734079
tetradic
#797340 #407957 #404679 #794063
square
#797340 #407957 #404679 #794063
split-complementary
#797340 #406379 #574079
monochromatic
#292716 #514D2B #797340 #A19955 #B9B27A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797340#FFFFFF#000000##FFFFFF
##7973401.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)
#7B703C
Deuteranopia (green-blind)
#7D7342
Tritanopia (blue-blind)
#816D67
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797340;
/* rgb */ color: rgb(121, 115, 64);
/* oklch */ color: oklch(54.9% 0.071 102.5);
Tailwind
colors: {
  custom: {
    50: '#a19b76',
    500: '#797340',
    950: '#000000',
  },
}
SCSS
$custom: #797340;
$custom-light: #a19b76;
$custom-dark: #000000;
JSON
{
  "hex": "#797340",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 64
  },
  "hsl": {
    "h": 53.684,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.54876,
    "c": 0.07132,
    "h": 102.5
  },
  "luminance": 0.16697
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797340

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

Preview Lab → · Contrast checker → · Palette generator →

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