#797147#797147

#797147 is a mid, moderate yellow. Relative luminance 0.163; OKLCH L 54.5% C 0.061 H 98.8°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797147
RGBrgb(121, 113, 71)
HSLhsl(50, 26%, 38%)
HSVhsv(50, 41%, 47%)
CMYKcmyk(0%, 6.6%, 41.3%, 52.5%)
CIE-LABlab(47.41, -3.53, 24.43)
CIE-LCHlch(47.41, 24.68, 98.22°)
OKLaboklab(54.54% -0.0092 0.0599)
OKLCHoklch(54.54% 0.061 98.8)
XYZxyz(14.9279, 16.3306, 8.3258)
Luminance0.1633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797147 #474F79
analogous
#795847 #797147 #687947
triadic
#797147 #477971 #714779
tetradic
#797147 #477958 #474F79 #794768
square
#797147 #477958 #474F79 #794768
split-complementary
#797147 #476879 #584779
monochromatic
#2C291A #524D30 #797147 #A0955E #B7AF84

Accessibility & contrast

On white

4.92
#797147 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#797147 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797147
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797147#FFFFFF#000000##FFFFFF
##7971471.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F44
Deuteranopia (green-blind)
#7B7249
Tritanopia (blue-blind)
#806B66
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797147;
/* rgb */ color: rgb(121, 113, 71);
/* oklch */ color: oklch(54.5% 0.061 98.8);
Tailwind
colors: {
  custom: {
    50: '#a1997b',
    500: '#797147',
    950: '#000000',
  },
}
SCSS
$custom: #797147;
$custom-light: #a1997b;
$custom-dark: #000000;
JSON
{
  "hex": "#797147",
  "rgb": {
    "r": 121,
    "g": 113,
    "b": 71
  },
  "hsl": {
    "h": 50.4,
    "s": 26.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.54538,
    "c": 0.06056,
    "h": 98.8
  },
  "luminance": 0.1633
}

Semantic roles & 50–950 ramp

primary
#797147
secondary
#7980A3
accent
#74C265
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797147

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

Preview Lab → · Contrast checker → · Palette generator →

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