#798040#798040

#798040 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.9% C 0.088 H 114.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#798040
RGBrgb(121, 128, 64)
HSLhsl(67, 33%, 38%)
HSVhsv(67, 50%, 50%)
CMYKcmyk(5.5%, 0%, 50%, 49.8%)
CIE-LABlab(51.69, -12.69, 33.60)
CIE-LCHlch(51.69, 35.92, 110.69°)
OKLaboklab(57.92% -0.0361 0.0799)
OKLCHoklch(57.92% 0.088 114.3)
XYZxyz(16.5300, 19.8737, 7.8147)
Luminance0.1987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798040 #474080
analogous
#806740 #798040 #598040
triadic
#798040 #407980 #804079
tetradic
#798040 #408067 #474080 #804059
square
#798040 #408067 #474080 #804059
split-complementary
#798040 #405980 #674080
monochromatic
#2C2E17 #52572C #798040 #A0A954 #B7BE7D

Accessibility & contrast

On white

4.22
#798040 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#798040 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798040
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798040#FFFFFF#000000##000000
##7980401.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#887B3A
Deuteranopia (green-blind)
#887C43
Tritanopia (blue-blind)
#807A71
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798040;
/* rgb */ color: rgb(121, 128, 64);
/* oklch */ color: oklch(57.9% 0.088 114.3);
Tailwind
colors: {
  custom: {
    50: '#a1a476',
    500: '#798040',
    950: '#000000',
  },
}
SCSS
$custom: #798040;
$custom-light: #a1a476;
$custom-dark: #000000;
JSON
{
  "hex": "#798040",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 64
  },
  "hsl": {
    "h": 66.563,
    "s": 33.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57915,
    "c": 0.08773,
    "h": 114.3
  },
  "luminance": 0.19873
}

Semantic roles & 50–950 ramp

primary
#798040
secondary
#7974A8
accent
#5EC96A
background
#FAFAF7
surface
#F3F4ED
border
#CDCEC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #798040

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

Preview Lab → · Contrast checker → · Palette generator →

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