#797948#797948

#797948 is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.4% C 0.069 H 108.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797948
RGBrgb(121, 121, 72)
HSLhsl(60, 25%, 38%)
HSVhsv(60, 40%, 47%)
CMYKcmyk(0%, 0%, 40.5%, 52.5%)
CIE-LABlab(49.75, -7.94, 26.86)
CIE-LCHlch(49.75, 28.01, 106.46°)
OKLaboklab(56.4% -0.0218 0.0655)
OKLCHoklch(56.4% 0.069 108.4)
XYZxyz(15.8924, 18.2079, 8.8069)
Luminance0.1821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797948 #484879
analogous
#796048 #797948 #607948
triadic
#797948 #487979 #794879
tetradic
#797948 #487960 #484879 #794860
square
#797948 #487960 #484879 #794860
split-complementary
#797948 #486079 #604879
monochromatic
#2C2C1A #535331 #797948 #9F9F5F #B6B685

Accessibility & contrast

On white

4.52
#797948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#797948 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797948
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797948#FFFFFF#000000##000000
##7979481.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#807544
Deuteranopia (green-blind)
#81774A
Tritanopia (blue-blind)
#7F736D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797948;
/* rgb */ color: rgb(121, 121, 72);
/* oklch */ color: oklch(56.4% 0.069 108.4);
Tailwind
colors: {
  custom: {
    50: '#a09f7c',
    500: '#797948',
    950: '#000000',
  },
}
SCSS
$custom: #797948;
$custom-light: #a09f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#797948",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 60,
    "s": 25.389,
    "l": 37.843
  },
  "oklch": {
    "l": 0.56401,
    "c": 0.06899,
    "h": 108.4
  },
  "luminance": 0.18208
}

Semantic roles & 50–950 ramp

primary
#797948
secondary
#7A7AA2
accent
#66C266
background
#FAF9F7
surface
#F3F2EE
border
#CDCCC9
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797948

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

Preview Lab → · Contrast checker → · Palette generator →

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